```lua
-- 拖拽尚未结束时,先松开鼠标,再执行 Command+C。
if _G.dragCopyFix then _G.dragCopyFix.stop() end
local M = { dragging = false, copies = 0 }
_G.dragCopyFix = M
local event = hs.eventtap.event
local types = event.types
local function observe(e)
local kind = e:getType()
if kind == types.leftMouseDown or kind == types.leftMouseUp then
M.dragging = false
return false
end
Lv.2潜力创作者
Lv.4 核心创作者