hammerspoon icon indicating copy to clipboard operation
hammerspoon copied to clipboard

eventtap.keyStroke not working

Open Heinrich-XIAO opened this issue 11 months ago • 3 comments

hs.eventtap.keyStroke({"ctrl"}, "left")

this didn't seem to execute ctrl+leftarrow. it didn't do anything. when I see what keys were pressed, it only pressed left arrow.

Heinrich-XIAO avatar Jan 03 '25 16:01 Heinrich-XIAO

My hs.eventtap.keyStroke({"shift", "cmd"}, "4") didnt work 。macOS 14.7.4

kainy avatar Mar 07 '25 14:03 kainy

hs.eventtap.keyStroke({'cmd'}, 'C')

Doesnt work

salmanuc avatar Jul 14 '25 23:07 salmanuc

  • hs.eventtap.keyStroke({"ctrl"}, "left") does nothing
  • hs.eventtap.keyStroke({"fn", "ctrl"}, "left") sends ctrl+left
  • apparently there's no way to do actual fn+ctrl+left

mibu-games avatar Sep 07 '25 21:09 mibu-games