-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(behaviors): Adding global quick tap #1187
Merged
Merged
Changes from 4 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ff0b114
Functional but janky impl of global quick tap.
andrewjrae 17883dc
Properly integrating global quick tap as an option
andrewjrae d532387
Adding tests for global quick tap.
andrewjrae b8f7756
Adding a quick bit of docs
andrewjrae 58c48ea
Unifying last tapped timestamps.
andrewjrae 7aed090
Fixing clang format error.
andrewjrae a21b8a2
Improving global-quick-tap docs
andrewjrae 9657ce0
More updates to the quick tap documentation.
andrewjrae a832366
Running prettier:format.
andrewjrae File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
6 changes: 6 additions & 0 deletions
6
app/tests/hold-tap/balanced/8-global-quick-tap/1-basic/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,6 @@ | ||
s/.*hid_listener_keycode/kp/p | ||
s/.*mo_keymap_binding/mo/p | ||
s/.*on_hold_tap_binding/ht_binding/p | ||
s/.*decide_hold_tap/ht_decide/p | ||
s/.*update_hold_status_for_retro_tap/update_hold_status_for_retro_tap/p | ||
s/.*decide_retro_tap/decide_retro_tap/p |
24 changes: 24 additions & 0 deletions
24
app/tests/hold-tap/balanced/8-global-quick-tap/1-basic/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,24 @@ | ||
ht_binding_pressed: 0 new undecided hold_tap | ||
ht_decide: 0 decided tap (balanced decision moment key-up) | ||
kp_pressed: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_released: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 | ||
ht_binding_released: 0 cleaning up hold-tap | ||
ht_binding_pressed: 0 new undecided hold_tap | ||
ht_decide: 0 decided tap (balanced decision moment quick-tap) | ||
kp_pressed: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_released: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 | ||
ht_binding_released: 0 cleaning up hold-tap | ||
ht_binding_pressed: 0 new undecided hold_tap | ||
ht_decide: 0 decided hold-timer (balanced decision moment timer) | ||
kp_pressed: usage_page 0x07 keycode 0xe1 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_pressed: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_released: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_released: usage_page 0x07 keycode 0xe1 implicit_mods 0x00 explicit_mods 0x00 | ||
ht_binding_released: 0 cleaning up hold-tap | ||
kp_pressed: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 | ||
ht_binding_pressed: 0 new undecided hold_tap | ||
ht_decide: 0 decided tap (balanced decision moment quick-tap) | ||
kp_pressed: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_released: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_released: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 | ||
ht_binding_released: 0 cleaning up hold-tap |
25 changes: 25 additions & 0 deletions
25
app/tests/hold-tap/balanced/8-global-quick-tap/1-basic/native_posix.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,25 @@ | ||
#include <dt-bindings/zmk/keys.h> | ||
#include <behaviors.dtsi> | ||
#include <dt-bindings/zmk/kscan_mock.h> | ||
#include "../behavior_keymap.dtsi" | ||
|
||
&kscan { | ||
events = < | ||
/* tap */ | ||
ZMK_MOCK_PRESS(0,0,10) | ||
ZMK_MOCK_RELEASE(0,0,10) | ||
/* normal quick tap */ | ||
ZMK_MOCK_PRESS(0,0,400) | ||
ZMK_MOCK_RELEASE(0,0,400) | ||
/* hold */ | ||
ZMK_MOCK_PRESS(0,0,400) | ||
ZMK_MOCK_PRESS(1,0,10) | ||
ZMK_MOCK_RELEASE(1,0,10) | ||
ZMK_MOCK_RELEASE(0,0,400) | ||
/* global quick tap */ | ||
ZMK_MOCK_PRESS(1,0,10) | ||
ZMK_MOCK_PRESS(0,0,400) | ||
ZMK_MOCK_RELEASE(1,0,10) | ||
ZMK_MOCK_RELEASE(0,0,10) | ||
>; | ||
}; |
6 changes: 6 additions & 0 deletions
6
app/tests/hold-tap/balanced/8-global-quick-tap/2-double-hold/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,6 @@ | ||
s/.*hid_listener_keycode/kp/p | ||
s/.*mo_keymap_binding/mo/p | ||
s/.*on_hold_tap_binding/ht_binding/p | ||
s/.*decide_hold_tap/ht_decide/p | ||
s/.*update_hold_status_for_retro_tap/update_hold_status_for_retro_tap/p | ||
s/.*decide_retro_tap/decide_retro_tap/p |
12 changes: 12 additions & 0 deletions
12
app/tests/hold-tap/balanced/8-global-quick-tap/2-double-hold/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,12 @@ | ||
ht_binding_pressed: 0 new undecided hold_tap | ||
ht_decide: 0 decided hold-timer (balanced decision moment timer) | ||
kp_pressed: usage_page 0x07 keycode 0xe1 implicit_mods 0x00 explicit_mods 0x00 | ||
ht_binding_pressed: 1 new undecided hold_tap | ||
ht_decide: 1 decided hold-timer (balanced decision moment timer) | ||
kp_pressed: usage_page 0x07 keycode 0xe0 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_pressed: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_released: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_released: usage_page 0x07 keycode 0xe1 implicit_mods 0x00 explicit_mods 0x00 | ||
ht_binding_released: 0 cleaning up hold-tap | ||
kp_released: usage_page 0x07 keycode 0xe0 implicit_mods 0x00 explicit_mods 0x00 | ||
ht_binding_released: 1 cleaning up hold-tap |
20 changes: 20 additions & 0 deletions
20
app/tests/hold-tap/balanced/8-global-quick-tap/2-double-hold/native_posix.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,20 @@ | ||
#include <dt-bindings/zmk/keys.h> | ||
#include <behaviors.dtsi> | ||
#include <dt-bindings/zmk/kscan_mock.h> | ||
#include "../behavior_keymap.dtsi" | ||
|
||
&kscan { | ||
events = < | ||
/* hold the first mod tap */ | ||
ZMK_MOCK_PRESS(0,0,400) | ||
/* hold the second mod tap */ | ||
ZMK_MOCK_PRESS(0,1,400) | ||
/* press the normal key */ | ||
ZMK_MOCK_PRESS(1,0,10) | ||
ZMK_MOCK_RELEASE(1,0,10) | ||
|
||
/* release the hold taps */ | ||
ZMK_MOCK_RELEASE(0,0,10) | ||
ZMK_MOCK_RELEASE(0,1,10) | ||
>; | ||
}; |
29 changes: 29 additions & 0 deletions
29
app/tests/hold-tap/balanced/8-global-quick-tap/behavior_keymap.dtsi
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,29 @@ | ||
#include <dt-bindings/zmk/keys.h> | ||
#include <behaviors.dtsi> | ||
#include <dt-bindings/zmk/kscan_mock.h> | ||
|
||
/ { | ||
behaviors { | ||
ht_bal: behavior_balanced { | ||
compatible = "zmk,behavior-hold-tap"; | ||
label = "MOD_TAP"; | ||
#binding-cells = <2>; | ||
flavor = "balanced"; | ||
tapping-term-ms = <300>; | ||
quick-tap-ms = <300>; | ||
bindings = <&kp>, <&kp>; | ||
global-quick-tap; | ||
}; | ||
}; | ||
|
||
keymap { | ||
compatible = "zmk,keymap"; | ||
label ="Default keymap"; | ||
|
||
default_layer { | ||
bindings = < | ||
&ht_bal LEFT_SHIFT F &ht_bal LEFT_CONTROL C | ||
&kp D &none>; | ||
}; | ||
}; | ||
}; |
6 changes: 6 additions & 0 deletions
6
app/tests/hold-tap/hold-preferred/8-global-quick-tap/1-basic/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,6 @@ | ||
s/.*hid_listener_keycode/kp/p | ||
s/.*mo_keymap_binding/mo/p | ||
s/.*on_hold_tap_binding/ht_binding/p | ||
s/.*decide_hold_tap/ht_decide/p | ||
s/.*update_hold_status_for_retro_tap/update_hold_status_for_retro_tap/p | ||
s/.*decide_retro_tap/decide_retro_tap/p |
24 changes: 24 additions & 0 deletions
24
app/tests/hold-tap/hold-preferred/8-global-quick-tap/1-basic/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,24 @@ | ||
ht_binding_pressed: 0 new undecided hold_tap | ||
ht_decide: 0 decided tap (hold-preferred decision moment key-up) | ||
kp_pressed: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_released: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 | ||
ht_binding_released: 0 cleaning up hold-tap | ||
ht_binding_pressed: 0 new undecided hold_tap | ||
ht_decide: 0 decided tap (hold-preferred decision moment quick-tap) | ||
kp_pressed: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_released: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 | ||
ht_binding_released: 0 cleaning up hold-tap | ||
ht_binding_pressed: 0 new undecided hold_tap | ||
ht_decide: 0 decided hold-interrupt (hold-preferred decision moment other-key-down) | ||
kp_pressed: usage_page 0x07 keycode 0xe1 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_pressed: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_released: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_released: usage_page 0x07 keycode 0xe1 implicit_mods 0x00 explicit_mods 0x00 | ||
ht_binding_released: 0 cleaning up hold-tap | ||
kp_pressed: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 | ||
ht_binding_pressed: 0 new undecided hold_tap | ||
ht_decide: 0 decided tap (hold-preferred decision moment quick-tap) | ||
kp_pressed: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_released: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_released: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 | ||
ht_binding_released: 0 cleaning up hold-tap |
25 changes: 25 additions & 0 deletions
25
app/tests/hold-tap/hold-preferred/8-global-quick-tap/1-basic/native_posix.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,25 @@ | ||
#include <dt-bindings/zmk/keys.h> | ||
#include <behaviors.dtsi> | ||
#include <dt-bindings/zmk/kscan_mock.h> | ||
#include "../behavior_keymap.dtsi" | ||
|
||
&kscan { | ||
events = < | ||
/* tap */ | ||
ZMK_MOCK_PRESS(0,0,10) | ||
ZMK_MOCK_RELEASE(0,0,10) | ||
/* normal quick tap */ | ||
ZMK_MOCK_PRESS(0,0,400) | ||
ZMK_MOCK_RELEASE(0,0,400) | ||
/* hold */ | ||
ZMK_MOCK_PRESS(0,0,10) | ||
ZMK_MOCK_PRESS(1,0,10) | ||
ZMK_MOCK_RELEASE(1,0,10) | ||
ZMK_MOCK_RELEASE(0,0,400) | ||
/* global quick tap */ | ||
ZMK_MOCK_PRESS(1,0,10) | ||
ZMK_MOCK_PRESS(0,0,400) | ||
ZMK_MOCK_RELEASE(1,0,10) | ||
ZMK_MOCK_RELEASE(0,0,10) | ||
>; | ||
}; |
6 changes: 6 additions & 0 deletions
6
app/tests/hold-tap/hold-preferred/8-global-quick-tap/2-double-hold/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,6 @@ | ||
s/.*hid_listener_keycode/kp/p | ||
s/.*mo_keymap_binding/mo/p | ||
s/.*on_hold_tap_binding/ht_binding/p | ||
s/.*decide_hold_tap/ht_decide/p | ||
s/.*update_hold_status_for_retro_tap/update_hold_status_for_retro_tap/p | ||
s/.*decide_retro_tap/decide_retro_tap/p |
12 changes: 12 additions & 0 deletions
12
app/tests/hold-tap/hold-preferred/8-global-quick-tap/2-double-hold/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,12 @@ | ||
ht_binding_pressed: 0 new undecided hold_tap | ||
ht_decide: 0 decided hold-timer (hold-preferred decision moment timer) | ||
kp_pressed: usage_page 0x07 keycode 0xe1 implicit_mods 0x00 explicit_mods 0x00 | ||
ht_binding_pressed: 1 new undecided hold_tap | ||
ht_decide: 1 decided hold-timer (hold-preferred decision moment timer) | ||
kp_pressed: usage_page 0x07 keycode 0xe0 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_pressed: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_released: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_released: usage_page 0x07 keycode 0xe1 implicit_mods 0x00 explicit_mods 0x00 | ||
ht_binding_released: 0 cleaning up hold-tap | ||
kp_released: usage_page 0x07 keycode 0xe0 implicit_mods 0x00 explicit_mods 0x00 | ||
ht_binding_released: 1 cleaning up hold-tap |
20 changes: 20 additions & 0 deletions
20
app/tests/hold-tap/hold-preferred/8-global-quick-tap/2-double-hold/native_posix.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,20 @@ | ||
#include <dt-bindings/zmk/keys.h> | ||
#include <behaviors.dtsi> | ||
#include <dt-bindings/zmk/kscan_mock.h> | ||
#include "../behavior_keymap.dtsi" | ||
|
||
&kscan { | ||
events = < | ||
/* hold the first mod tap */ | ||
ZMK_MOCK_PRESS(0,0,400) | ||
/* hold the second mod tap */ | ||
ZMK_MOCK_PRESS(0,1,400) | ||
/* press the normal key */ | ||
ZMK_MOCK_PRESS(1,0,10) | ||
ZMK_MOCK_RELEASE(1,0,10) | ||
|
||
/* release the hold taps */ | ||
ZMK_MOCK_RELEASE(0,0,10) | ||
ZMK_MOCK_RELEASE(0,1,10) | ||
>; | ||
}; |
29 changes: 29 additions & 0 deletions
29
app/tests/hold-tap/hold-preferred/8-global-quick-tap/behavior_keymap.dtsi
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,29 @@ | ||
#include <dt-bindings/zmk/keys.h> | ||
#include <behaviors.dtsi> | ||
#include <dt-bindings/zmk/kscan_mock.h> | ||
|
||
/ { | ||
behaviors { | ||
hp: behavior_hold_preferred { | ||
compatible = "zmk,behavior-hold-tap"; | ||
label = "MOD_TAP"; | ||
#binding-cells = <2>; | ||
flavor = "hold-preferred"; | ||
tapping-term-ms = <300>; | ||
quick-tap-ms = <300>; | ||
bindings = <&kp>, <&kp>; | ||
global-quick-tap; | ||
}; | ||
}; | ||
|
||
keymap { | ||
compatible = "zmk,keymap"; | ||
label ="Default keymap"; | ||
|
||
default_layer { | ||
bindings = < | ||
&hp LEFT_SHIFT F &hp LEFT_CONTROL G | ||
&kp D &none>; | ||
}; | ||
}; | ||
}; |
6 changes: 6 additions & 0 deletions
6
app/tests/hold-tap/tap-preferred/8-global-quick-tap/1-basic/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,6 @@ | ||
s/.*hid_listener_keycode/kp/p | ||
s/.*mo_keymap_binding/mo/p | ||
s/.*on_hold_tap_binding/ht_binding/p | ||
s/.*decide_hold_tap/ht_decide/p | ||
s/.*update_hold_status_for_retro_tap/update_hold_status_for_retro_tap/p | ||
s/.*decide_retro_tap/decide_retro_tap/p |
24 changes: 24 additions & 0 deletions
24
app/tests/hold-tap/tap-preferred/8-global-quick-tap/1-basic/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,24 @@ | ||
ht_binding_pressed: 0 new undecided hold_tap | ||
ht_decide: 0 decided tap (tap-preferred decision moment key-up) | ||
kp_pressed: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_released: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 | ||
ht_binding_released: 0 cleaning up hold-tap | ||
ht_binding_pressed: 0 new undecided hold_tap | ||
ht_decide: 0 decided tap (tap-preferred decision moment quick-tap) | ||
kp_pressed: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_released: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 | ||
ht_binding_released: 0 cleaning up hold-tap | ||
ht_binding_pressed: 0 new undecided hold_tap | ||
ht_decide: 0 decided hold-timer (tap-preferred decision moment timer) | ||
kp_pressed: usage_page 0x07 keycode 0xe1 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_pressed: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_released: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_released: usage_page 0x07 keycode 0xe1 implicit_mods 0x00 explicit_mods 0x00 | ||
ht_binding_released: 0 cleaning up hold-tap | ||
kp_pressed: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 | ||
ht_binding_pressed: 0 new undecided hold_tap | ||
ht_decide: 0 decided tap (tap-preferred decision moment quick-tap) | ||
kp_pressed: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_released: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 | ||
kp_released: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 | ||
ht_binding_released: 0 cleaning up hold-tap |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe instead of checking for mods, we should check if the timestamps are identical. That would be a better filter to find a hold-taps' own keypresses (although it's not perfect).