benblazak / ergodox-firmware

firmware for the ergoDOX keyboard
Other
595 stars 296 forks source link

Hold letter key for another key entirely #93

Open pixelpax opened 4 years ago

pixelpax commented 4 years ago

I'd like to hold the 'h' key for escape. Is there a way to do this?

benblazak commented 4 years ago

probably... but it would probably be involved. i forget if the timer functions are easily accessible in the files where the key press and release functions are defined -- but that's what you'd have to do: set a timer (or get the current time somehow) on press, and then trigger the correct actions on release (or after the timer expired).

sorry i can't be more help, it's been a while since i've looked at the code :-)