You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a bit new to hammerspoon, I am looking for backspace key code
Hammerspoon uses the Mac names for keys: delete is the key that deletes the previous character (what other systems call Backspace - this should be the one you need), while forwarddelete is the key that deletes the next character (what other systems call Delete).
Edit: after some more testing some keys don't get regstered with ctrl alt cmd shift pressed
Yeah, there are a few keyboard shortcuts with all four modifiers that are hardcoded into the system (mostly to trigger various diagnostic dumps from sysdiagnose), and can't be overridden by hs.hotkey. (See #616, #2557.) So far I've found mentions of Hyper-., Hyper-,, Hyper-/1, and Hyper-w2 doing this. Not sure if Hyper-Delete has anything like that or not.
If you need to take over one of those key combinations, your best bet is probably using something like Karabiner-Elements to remap e.g. Hyper-. to a completely different key, like F19 (example config here), before macOS ever sees it - then bind that key in Hammerspoon instead.
Alternately, you might be able to intercept that shortcut from Hammerspoon using an hs.eventtap instead of an hs.hotkey - but that has its own limitations, some of which are described in #2557 (comment). (It also won't work whenever you're using something that turns on Secure Input Mode, like a password field, or some terminal apps.)
a bit new to hammerspoon, I am looking for backspace key code
keycodes.lua
am I missing something, I get this error:
Invalid key: backspace - this may mean that the key requested does not exist in your keymap (particularly if you switch keyboard layouts frequently)
more likely that backspace is registered as 51 but with hyper modifiers its not
Edit: after some more testing some keys don't get regstered with ctrl alt cmd shift pressed
The text was updated successfully, but these errors were encountered: