Hacker News new | ask | show | jobs
by the_jeremy 2182 days ago
Or if you're on a locked-down computer because your office hates people, ctrl+[ works as well (and is portable to other people's computers)
1 comments

You can also do the remapping in hardware. Programmable keyboards are quite popular these days (I built one out of a $3 stm32f103), and they don't rely on the OS to help you do what you want to do.

(This is a blessing and a curse. You never have to worry about OS-level hacks to make caps lock a control key, but on the other hand, there is no way in the USB HID protocol to say "send an !". Rather, the keyboard has to synthesize a shift + 1. And what character that actually maps to depends on your OS, because of course it does.)