aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/tests/toggle-layer
diff options
context:
space:
mode:
authorOkke Formsma <[email protected]>2021-01-22 17:00:19 +0100
committerPete Johanson <[email protected]>2021-01-24 23:30:41 -0500
commit7b7701ae90469b920cd78e2ab7aca0c470140b7a (patch)
treeb4fade597239b5f0df24197faea3413e305a636f /app/tests/toggle-layer
parent0c30b49063c79be2416453f4544795922efad74f (diff)
downloadzmk-7b7701ae90469b920cd78e2ab7aca0c470140b7a.tar.gz
zmk-7b7701ae90469b920cd78e2ab7aca0c470140b7a.zip
feature(modifiers): add explicit modifiers
this makes LS(LEFT_CONTROL) work as if shift and control were both pressed explicitly. Previously, the left shift would have been released as soon as another key was pressed. The implicit behavior is useful in case of LS(NUMBER_1) when rolling over to other keys. Also see #361.
Diffstat (limited to 'app/tests/toggle-layer')
-rw-r--r--app/tests/toggle-layer/early-key-release/keycode_events.snapshot8
-rw-r--r--app/tests/toggle-layer/normal/keycode_events.snapshot4
2 files changed, 6 insertions, 6 deletions
diff --git a/app/tests/toggle-layer/early-key-release/keycode_events.snapshot b/app/tests/toggle-layer/early-key-release/keycode_events.snapshot
index 6b4d50bdee..e0aa502fe8 100644
--- a/app/tests/toggle-layer/early-key-release/keycode_events.snapshot
+++ b/app/tests/toggle-layer/early-key-release/keycode_events.snapshot
@@ -1,6 +1,6 @@
-kp_pressed: usage_page 0x07 keycode 0x05 mods 0x00
+kp_pressed: usage_page 0x07 keycode 0x05 implicit_mods 0x00 explicit_mods 0x00
tog_pressed: position 1 layer 1
-kp_released: usage_page 0x07 keycode 0x05 mods 0x00
+kp_released: usage_page 0x07 keycode 0x05 implicit_mods 0x00 explicit_mods 0x00
tog_released: position 1 layer 1
-kp_pressed: usage_page 0x0c keycode 0xb5 mods 0x00
-kp_released: usage_page 0x0c keycode 0xb5 mods 0x00
+kp_pressed: usage_page 0x0c keycode 0xb5 implicit_mods 0x00 explicit_mods 0x00
+kp_released: usage_page 0x0c keycode 0xb5 implicit_mods 0x00 explicit_mods 0x00
diff --git a/app/tests/toggle-layer/normal/keycode_events.snapshot b/app/tests/toggle-layer/normal/keycode_events.snapshot
index d03295ef16..8b5b0cc563 100644
--- a/app/tests/toggle-layer/normal/keycode_events.snapshot
+++ b/app/tests/toggle-layer/normal/keycode_events.snapshot
@@ -1,4 +1,4 @@
tog_pressed: position 1 layer 1
tog_released: position 1 layer 1
-kp_pressed: usage_page 0x0c keycode 0xb5 mods 0x00
-kp_released: usage_page 0x0c keycode 0xb5 mods 0x00
+kp_pressed: usage_page 0x0c keycode 0xb5 implicit_mods 0x00 explicit_mods 0x00
+kp_released: usage_page 0x0c keycode 0xb5 implicit_mods 0x00 explicit_mods 0x00