Browse Source
* Continue caps word when mods are changed, and match the continue list on combination of explicit and implicit modifiers.xmkb
Peter Johanson
3 years ago
committed by
Pete Johanson
4 changed files with 62 additions and 1 deletions
@ -0,0 +1,4 @@ |
|||||||
|
s/.*hid_listener_keycode_//p |
||||||
|
s/.*hid_implicit_modifiers_//p |
||||||
|
s/.*caps_word_enhance_usage/enhance_usage/p |
||||||
|
s/.*caps_word_is_caps_includelist/caps_includelist/p |
@ -0,0 +1,20 @@ |
|||||||
|
enhance_usage: Enhancing usage 0x04 with modifiers: 0x02 |
||||||
|
pressed: usage_page 0x07 keycode 0x04 implicit_mods 0x02 explicit_mods 0x00 |
||||||
|
press: Modifiers set to 0x02 |
||||||
|
released: usage_page 0x07 keycode 0x04 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
release: Modifiers set to 0x00 |
||||||
|
pressed: usage_page 0x07 keycode 0xE1 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
press: Modifiers set to 0x02 |
||||||
|
caps_includelist: Comparing with 0x07 - 0x2D (with implicit mods: 0x02) |
||||||
|
caps_includelist: Continuing capsword, found included usage: 0x07 - 0x2D |
||||||
|
pressed: usage_page 0x07 keycode 0x2D implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
press: Modifiers set to 0x02 |
||||||
|
released: usage_page 0x07 keycode 0x2D implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
release: Modifiers set to 0x02 |
||||||
|
released: usage_page 0x07 keycode 0xE1 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
release: Modifiers set to 0x00 |
||||||
|
enhance_usage: Enhancing usage 0x04 with modifiers: 0x02 |
||||||
|
pressed: usage_page 0x07 keycode 0x04 implicit_mods 0x02 explicit_mods 0x00 |
||||||
|
press: Modifiers set to 0x02 |
||||||
|
released: usage_page 0x07 keycode 0x04 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
release: Modifiers set to 0x00 |
@ -0,0 +1,33 @@ |
|||||||
|
#include <dt-bindings/zmk/keys.h> |
||||||
|
#include <behaviors.dtsi> |
||||||
|
#include <dt-bindings/zmk/kscan_mock.h> |
||||||
|
#include "../behavior_keymap.dtsi" |
||||||
|
|
||||||
|
/ { |
||||||
|
keymap { |
||||||
|
compatible = "zmk,keymap"; |
||||||
|
label = "Default keymap"; |
||||||
|
|
||||||
|
default_layer { |
||||||
|
bindings = < |
||||||
|
&caps_word &kp A |
||||||
|
&kp LSHFT &kp MINUS |
||||||
|
>; |
||||||
|
}; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
&kscan { |
||||||
|
events = < |
||||||
|
ZMK_MOCK_PRESS(0,0,10) |
||||||
|
ZMK_MOCK_RELEASE(0,0,10) |
||||||
|
ZMK_MOCK_PRESS(0,1,10) |
||||||
|
ZMK_MOCK_RELEASE(0,1,10) |
||||||
|
ZMK_MOCK_PRESS(1,0,10) |
||||||
|
ZMK_MOCK_PRESS(1,1,10) |
||||||
|
ZMK_MOCK_RELEASE(1,1,10) |
||||||
|
ZMK_MOCK_RELEASE(1,0,10) |
||||||
|
ZMK_MOCK_PRESS(0,1,10) |
||||||
|
ZMK_MOCK_RELEASE(0,1,10) |
||||||
|
>; |
||||||
|
}; |
Loading…
Reference in new issue