Closed nicluo closed 6 years ago
To use special function defined in fn_actions[]
array you have to refer to the function with FNx
in your KEYMAP()
where x is number 0-31 which indicates index in the array.
In your keymap file the tap key function is defined with index '1' and you have to use FN1
instead of LCTL
in KEYMAP()
.
You can define tap key in Keymap Editor too. You can see definition of Left Control key in 'Code Edit' tab.
Got it to work. Thank you!
On my Mac, I was only able to get the Keymap Editor to work on Chrome, while Safari and Firefox had issues loading.
Steps to resolve:
ACTION_MODS_TAP_KEY(MOD_LCTL, KC_ESC),
KEYMAP()
area, changing LCTL
to FN1
make -f Makefile.rn42
make -f Makefile.rn42 dfu
Here is the part about changing LCTL
to FN1
which I missed.
KEYMAP(ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSLS,GRV, \
TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSPC, \
FN1, A, S, D, F, G, H, J, K, L, SCLN,QUOT,ENT, \
LSFT,Z, X, C, V, B, N, M, COMM,DOT, SLSH,RSFT,FN0, \
LALT,LGUI, SPC, RGUI,RALT),
I've been trying to get dual-role keys to work on my HHKB Pro 2 with BT Controller.
I'm sorry if I've missed some trivial configuration but I've been reading up and trying to resolve this on my own for two evenings now. Any pointers will be very helpful to me as well.
Steps to reproduce:
keymap_hhkb.c
to includeACTION_MODS_TAP_KEY(MOD_LCTL, KC_ESC),
make -f Makefile.rn42
make -f Makefile.rn42 dfu
Expected: When I tap left Control it should register Escape.
Issue: When I tap left Control nothing happens, it works normally when on hold as Control.
I know that the new firmware is flashed because if I change the keymap new keys get registered (e.g. 'a' to 'z', then when I press the key labeled 'a' on the keyboard it shows z on my text editor instead). I am using Mac OS X on a MacBook.
Full
keycap_hhkb.c