diff options
author | Gergely Nagy <algernon@madhouse-project.org> | 2017-07-30 09:40:16 +0200 |
---|---|---|
committer | Jesse Vincent <jesse@keyboard.io> | 2017-08-14 15:46:27 -0700 |
commit | 49b5acd40ccc1a0c941a185b9eb245ac9ec19062 (patch) | |
tree | 37f09c51a3da3ccb8fc22e622e26859a939ba6b3 | |
parent | 567b3173f0be93628f9b5e5a13dd283ffdc11017 (diff) | |
download | Model01-Firmware-49b5acd40ccc1a0c941a185b9eb245ac9ec19062.tar.gz Model01-Firmware-49b5acd40ccc1a0c941a185b9eb245ac9ec19062.zip |
Turn the Fn keys into Keymap1_Momentary
When both `Fn` keys are `KeymapNext_Momentary`, holding both would get us to the
`NUMPAD` layer, which overrides the palm keys and turns them into
`Keymap1_Momentary` keys. Thus, when releasing them, we would receive a release
event for `Keymap1_Momentary`, not for `KeymapNext_Momentary`, and we'd be stuck
on the `Numpad` layer until toggling it off.
To avoid this scenario, change the `KeymapNext_Momentary` keys into
`Keymap1_Momentary`, so we never reach the `NUMPAD` layer via the `Fn` keys.
Fixes keyboardio/Kaleidoscope#151, with thanks to @chughes87 for the report!
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
-rw-r--r-- | Model01-Firmware.ino | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino index c9a15e6..e7f0e79 100644 --- a/Model01-Firmware.ino +++ b/Model01-Firmware.ino @@ -71,14 +71,14 @@ ___ \ Key_PageUp, Key_A, Key_S, Key_D, Key_F, Key_G, \ Key_PageDown, Key_Z, Key_X, Key_C, Key_V, Key_B, Key_Escape, \ Key_LeftControl, Key_Backspace, Key_LeftGui, Key_LeftShift, \ - Key_KeymapNext_Momentary, \ + Key_Keymap1_Momentary, \ \ Macro_Any, Key_6, Key_7, Key_8, Key_9, Key_0, Key_ToggleNumlock, \ Key_Enter, Key_Y, Key_U, Key_I, Key_O, Key_P, Key_Equals, \ Key_H, Key_J, Key_K, Key_L, Key_Semicolon, Key_Quote, \ Key_RightAlt, Key_N, Key_M, Key_Comma, Key_Period, Key_Slash, Key_Minus, \ Key_RightShift, Key_LeftAlt, Key_Spacebar, Key_RightControl, \ - Key_KeymapNext_Momentary \ + Key_Keymap1_Momentary \ ) const Key keymaps[][ROWS][COLS] PROGMEM = { |