Hyper+key combinations not registered in MacOS
"Yuri Davidovsky (as work at disclosure dot ie)" <[email protected]>
| Newsgroups | gmane.lisp.lispworks.general |
|---|---|
| Message-ID | <[email protected]> |
Consider this code example, modelled after the lw-dir/config/mac-key-binds.lisp
(flet ((mac-bind-key (command key &rest specific)
(if specific
(apply 'editor:bind-key command key specific)
(editor:bind-key command key :global :mac))))
(mac-bind-key "Beginning of Line Cancelling Selection" "Hyper-Left")
(mac-bind-key "Beginning Of Line After Prompt Cancelling Selection" "Hyper-Left" :mode "Pc Execute")
(mac-bind-key "End of Line Cancelling Selection" "Hyper-Right")
(mac-bind-key "End Of Line After Prompt Cancelling Selection" "Hyper-Right" :mode "Pc Execute”)
;; not working below
(mac-bind-key "Forward Form Cancelling Selection" "Hyper-l")
(mac-bind-key "Backward Form Cancelling Selection" "Hyper-j")
(mac-bind-key "Forward Paragraph" "Hyper-i")
(mac-bind-key "Backward Paragraph" "Hyper-k”))
It appears that the editor ignores all combinations of Command key + alphanumeric characters. It works for the cursor keys, up-down, left-right. Only the key combinations visible in the top menu work and those cannot be reassigned.
I think remember in the docs somewhere it said that a command+key combination should be registered as a menu shortcut for it to work, but I can’t find it now. Is there no realistic way to make use of the key in the editor on macos?