AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
![]() So I just modify the layout so that the dead keys only behave like dead keys when I'm holding AltGr, and otherwise type their normal characters instead. Go to System Preferences -> Accessibility -> Keyboard Check Enable Slow Keys Click Options Drag the Acceptance Delay slider all the way to the left Press OK. This allowed me to compare the comfort level of each to see which one feels right. Special hash tag synonyms for left (button 1), right (button 2), and middle (button 3) are also set to true if these buttons are currently being pressed. This is for both cursor movement and window management (Spectacle vs Hammerspoon scripted). In my case though, everything I'm likely to need to type is already handled via AltGr, so the dead keys just get in my way 99% of the time, especially considering that quotation marks are very commonly used when programming. Returns an array containing indicies starting from 1 up to the highest numbered button currently being pressed where the index is true if the button is currently pressed or false if it is not. In particular, ', ", `, ~ and ^ behave like this. For example, if I wanted to make Caps Lock my control key on the above. When you hit one of these keys, it modifies (depending on the exact layout) either the next or the last letter typed, and you have to hit them twice in a row to type the normal character. In addition to this though, you have a couple of what are known as 'dead keys'. On a normal US international keyboard, you have an AltGr key in place of right Alt which will result in different characters when held (for example a becomes á, o becomes ó, y becomes ü, s becomes ß, etc). Hammerspoon map both shift pressed to caps lock code#The important part of this code is that the moment you press a key other than caps while caps is still depressed, it changes to the ctrl keycode being sent. If you hold it longer than that it turns back into ctrl. Not sure if this really counts, but I use a custom keyboard layout on most of my systems that works like a standard US international keyboard layout except that I've inverted the behavior of the dead keys. It shouldn't interfere with anything in normal use, if its an esc press it will almost always be depressed for less than 0.2. ![]()
0 Comments
Read More
Leave a Reply. |