I'm debugging an emacs keyboard binding on my mac (C-/ to undo, if you're curious), and I came across a suggestion on EmacsWiki that I could use "showkey" to find the scancode. But it looks like a GNU/Linux-only kinda thing. Didn't find it on MacPorts. Anyone know of an alternative or something I'm missing?
Instead, the Macintosh equivalent of the Windows Ctrl key is the ⌘ key. It's right next to the space bar. It's pronounced “command,” although novices can often be heard calling it the “pretzel key,” “Apple key,” or “clover key.” Most Windows Ctrl-key combos correspond perfectly to ⌘-key sequences on the Mac.
Key Codes may be what you're looking for generally, even if you're out of luck with C-/
.
The emacs-app port works well if you need to escape from Terminal.app
Showkey's home page is http://catb.org/esr/showkey/.
FYI, if you're using Terminal.app, there's something of a known issue that C-/ is broken and doesn't get sent through to underlying applications. iTerm.app doesn't have that issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With