tmk / tmk_keyboard

Keyboard firmwares for Atmel AVR and Cortex-M
3.99k stars 1.71k forks source link

Is there a way to map LCTL + {H, J, K, L} to arrow keys? #538

Open khlj opened 6 years ago

khlj commented 6 years ago

I've been trying to make a MACRO for this, but it seems that I need to have a fn layer for that.

Should I have a fn layer and then create an action function for FN press (mapped to LCTL) to determine whether to press LCTL or switch to a FN layer and then go about doing this?

Any tips would be great!

Gyong1211 commented 6 years ago

https://github.com/Gyong1211/tmk_keyboard/blob/gyong1211/keyboard/hhkb/keymap_gyong.c

You can see what exactly you want in my keymap.

I map LCTL + HJKL to arrow key