-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ba91ee
commit ac5fee7
Showing
24 changed files
with
165 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
app/tests/caps-word/continue-with-hold-longer-than-timeout/events.patterns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
s/.*hid_listener_keycode_//p | ||
s/.*hid_implicit_modifiers_//p | ||
s/.*caps_word_keycode_state_changed_listener/state_changed/p | ||
s/.*caps_word_timeout_handler/timeout/p |
10 changes: 10 additions & 0 deletions
10
app/tests/caps-word/continue-with-hold-longer-than-timeout/keycode_events.snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
state_changed: 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 | ||
state_changed: 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 |
19 changes: 19 additions & 0 deletions
19
app/tests/caps-word/continue-with-hold-longer-than-timeout/native_posix_64.keymap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include <dt-bindings/zmk/keys.h> | ||
#include <behaviors.dtsi> | ||
#include <dt-bindings/zmk/kscan_mock.h> | ||
#include "../behavior_keymap.dtsi" | ||
|
||
&caps_word { | ||
idle-timeout-ms = <1000>; | ||
}; | ||
|
||
&kscan { | ||
events = < | ||
ZMK_MOCK_PRESS(0,0,10) | ||
ZMK_MOCK_RELEASE(0,0,10) | ||
ZMK_MOCK_PRESS(0,1,1500) | ||
ZMK_MOCK_RELEASE(0,1,10) | ||
ZMK_MOCK_PRESS(0,1,10) | ||
ZMK_MOCK_RELEASE(0,1,10) | ||
>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
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 | ||
s/.*caps_word_keycode_state_changed_listener/state_changed/p |
6 changes: 2 additions & 4 deletions
6
app/tests/caps-word/continue-with-modifiers/keycode_events.snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
app/tests/caps-word/continue-with-non-alpha-continue-list-item/events.patterns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
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 | ||
s/.*caps_word_keycode_state_changed_listener/state_changed/p |
7 changes: 2 additions & 5 deletions
7
app/tests/caps-word/continue-with-non-alpha-continue-list-item/keycode_events.snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
app/tests/caps-word/continue-with-non-modified-numeric-usage-id/events.patterns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
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 | ||
s/.*caps_word_keycode_state_changed_listener/state_changed/p |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
app/tests/caps-word/continue-with-shifted-key/events.patterns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
s/.*hid_listener_keycode_//p | ||
s/.*hid_implicit_modifiers_//p | ||
s/.*caps_word_keycode_state_changed_listener/state_changed/p |
15 changes: 15 additions & 0 deletions
15
app/tests/caps-word/continue-with-shifted-key/keycode_events.snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
state_changed: 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 | ||
state_changed: Enhancing usage 0x2D with modifiers: 0x02 | ||
pressed: usage_page 0x07 keycode 0x2D implicit_mods 0x02 explicit_mods 0x00 | ||
press: Modifiers set to 0x02 | ||
released: usage_page 0x07 keycode 0x2D implicit_mods 0x00 explicit_mods 0x00 | ||
release: Modifiers set to 0x00 | ||
state_changed: 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 |
22 changes: 22 additions & 0 deletions
22
app/tests/caps-word/continue-with-shifted-key/native_posix_64.keymap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include <dt-bindings/zmk/keys.h> | ||
#include <behaviors.dtsi> | ||
#include <dt-bindings/zmk/kscan_mock.h> | ||
#include "../behavior_keymap.dtsi" | ||
|
||
&caps_word { | ||
continue-list = <>; | ||
shift-list = <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,1,10) | ||
ZMK_MOCK_RELEASE(1,1,10) | ||
ZMK_MOCK_PRESS(0,1,10) | ||
ZMK_MOCK_RELEASE(0,1,10) | ||
>; | ||
}; |
3 changes: 3 additions & 0 deletions
3
app/tests/caps-word/deactivate-by-digit-with-no-default-keys/events.patterns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
s/.*hid_listener_keycode_//p | ||
s/.*hid_implicit_modifiers_//p | ||
s/.*caps_word_keycode_state_changed_listener/state_changed/p |
10 changes: 10 additions & 0 deletions
10
app/tests/caps-word/deactivate-by-digit-with-no-default-keys/keycode_events.snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
state_changed: 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 | ||
state_changed: Deactivating caps_word for 0x07 - 0x23 | ||
pressed: usage_page 0x07 keycode 0x23 implicit_mods 0x00 explicit_mods 0x00 | ||
press: Modifiers set to 0x00 | ||
released: usage_page 0x07 keycode 0x23 implicit_mods 0x00 explicit_mods 0x00 | ||
release: Modifiers set to 0x00 |
21 changes: 21 additions & 0 deletions
21
app/tests/caps-word/deactivate-by-digit-with-no-default-keys/native_posix_64.keymap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include <dt-bindings/zmk/keys.h> | ||
#include <behaviors.dtsi> | ||
#include <dt-bindings/zmk/kscan_mock.h> | ||
#include "../behavior_keymap.dtsi" | ||
|
||
&caps_word { | ||
continue-list = <>; | ||
shift-list = <A>; | ||
no-default-keys; | ||
}; | ||
|
||
&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_RELEASE(1,0,10) | ||
>; | ||
}; |
2 changes: 1 addition & 1 deletion
2
app/tests/caps-word/deactivate-by-non-alpha-non-continuation/events.patterns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
s/.*hid_listener_keycode_//p | ||
s/.*hid_implicit_modifiers_//p | ||
s/.*caps_word_enhance_usage/enhance_usage/p | ||
s/.*caps_word_keycode_state_changed_listener/state_changed/p |
3 changes: 2 additions & 1 deletion
3
app/tests/caps-word/deactivate-by-non-alpha-non-continuation/keycode_events.snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
s/.*hid_listener_keycode_//p | ||
s/.*hid_implicit_modifiers_//p | ||
s/.*caps_word_enhance_usage/enhance_usage/p | ||
s/.*caps_word_keycode_state_changed_listener/state_changed/p |
2 changes: 1 addition & 1 deletion
2
app/tests/caps-word/deactivate-by-second-press/keycode_events.snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
s/.*hid_listener_keycode_//p | ||
s/.*hid_implicit_modifiers_//p | ||
s/.*caps_word_keycode_state_changed_listener/state_changed/p | ||
s/.*caps_word_timeout_handler/timeout/p |
10 changes: 10 additions & 0 deletions
10
app/tests/caps-word/deactivate-by-timeout/keycode_events.snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
state_changed: 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 | ||
timeout: Deactivating caps_word for idle timeout | ||
pressed: usage_page 0x07 keycode 0x04 implicit_mods 0x00 explicit_mods 0x00 | ||
press: Modifiers set to 0x00 | ||
released: usage_page 0x07 keycode 0x04 implicit_mods 0x00 explicit_mods 0x00 | ||
release: Modifiers set to 0x00 |
19 changes: 19 additions & 0 deletions
19
app/tests/caps-word/deactivate-by-timeout/native_posix_64.keymap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include <dt-bindings/zmk/keys.h> | ||
#include <behaviors.dtsi> | ||
#include <dt-bindings/zmk/kscan_mock.h> | ||
#include "../behavior_keymap.dtsi" | ||
|
||
&caps_word { | ||
idle-timeout-ms = <1000>; | ||
}; | ||
|
||
&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,1500) | ||
ZMK_MOCK_PRESS(0,1,10) | ||
ZMK_MOCK_RELEASE(0,1,10) | ||
>; | ||
}; |