Browse Source
Sticky keys should be cleared when they were tapped in rapid succession before the timer runs out.xmkb
Okke Formsma
4 years ago
committed by
Pete Johanson
4 changed files with 39 additions and 3 deletions
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
s/.*hid_listener_keycode_//p |
@ -0,0 +1,4 @@
@@ -0,0 +1,4 @@
|
||||
pressed: usage_page 0x07 keycode 0xe1 mods 0x00 |
||||
released: usage_page 0x07 keycode 0xe1 mods 0x00 |
||||
pressed: usage_page 0x07 keycode 0xe1 mods 0x00 |
||||
released: usage_page 0x07 keycode 0xe1 mods 0x00 |
@ -0,0 +1,27 @@
@@ -0,0 +1,27 @@
|
||||
#include <dt-bindings/zmk/keys.h> |
||||
#include <behaviors.dtsi> |
||||
#include <dt-bindings/zmk/kscan-mock.h> |
||||
|
||||
/ { |
||||
keymap { |
||||
compatible = "zmk,keymap"; |
||||
label ="Default keymap"; |
||||
|
||||
default_layer { |
||||
bindings = < |
||||
&sk LEFT_SHIFT &none |
||||
&none &none |
||||
>; |
||||
}; |
||||
}; |
||||
}; |
||||
|
||||
&kscan { |
||||
events = < |
||||
ZMK_MOCK_PRESS(0,0,10) |
||||
ZMK_MOCK_RELEASE(0,0,10) |
||||
/* the sticky key is pressed again, so the previous one must be cancelled */ |
||||
ZMK_MOCK_PRESS(0,0,10) |
||||
ZMK_MOCK_RELEASE(0,0,1200) |
||||
>; |
||||
}; |
Loading…
Reference in new issue