Skip to content

Commit

Permalink
refactor(behaviors): Final global-quick-tap deprecation.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjrae authored and petejohanson committed Oct 3, 2023
1 parent 2234be0 commit 11996ff
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/boards/shields/cradio/cradio.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
flavor = "tap-preferred";
tapping-term-ms = <220>;
quick-tap-ms = <150>;
global-quick-tap;
require-prior-idle-ms = <100>;
bindings = <&kp>, <&kp>;
};
};
Expand Down
9 changes: 6 additions & 3 deletions app/dts/bindings/behaviors/zmk,behavior-hold-tap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,18 @@ properties:
required: true
tapping-term-ms:
type: int
tapping_term_ms: # deprecated
tapping_term_ms:
type: int
deprecated: true
quick-tap-ms:
type: int
default: -1
quick_tap_ms: # deprecated
quick_tap_ms:
type: int
global-quick-tap: # deprecated
deprecated: true
global-quick-tap:
type: boolean
deprecated: true
require-prior-idle-ms:
type: int
default: -1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
ZMK_MOCK_PRESS(1,0,10)
ZMK_MOCK_RELEASE(1,0,10)
ZMK_MOCK_RELEASE(0,0,400)
/* global quick tap */
/* require-prior-idle */
ZMK_MOCK_PRESS(1,0,10)
ZMK_MOCK_PRESS(0,0,400)
ZMK_MOCK_RELEASE(1,0,10)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
ZMK_MOCK_PRESS(1,0,10)
ZMK_MOCK_RELEASE(1,0,10)
ZMK_MOCK_RELEASE(0,0,400)
/* global quick tap */
/* require-prior-idle */
ZMK_MOCK_PRESS(1,0,10)
ZMK_MOCK_PRESS(0,0,400)
ZMK_MOCK_RELEASE(1,0,10)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
ZMK_MOCK_PRESS(1,0,10)
ZMK_MOCK_RELEASE(1,0,10)
ZMK_MOCK_RELEASE(0,0,400)
/* global quick tap */
/* require-prior-idle */
ZMK_MOCK_PRESS(1,0,10)
ZMK_MOCK_PRESS(0,0,400)
ZMK_MOCK_RELEASE(1,0,10)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
ZMK_MOCK_PRESS(1,0,10)
ZMK_MOCK_RELEASE(1,0,10)
ZMK_MOCK_RELEASE(0,0,400)
/* global quick tap */
/* require-prior-idle */
ZMK_MOCK_PRESS(1,0,10)
ZMK_MOCK_PRESS(0,0,400)
ZMK_MOCK_RELEASE(1,0,10)
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/behaviors/hold-tap.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ For example, the following hold-tap configuration enables `require-prior-idle-ms
```
rpi: require_prior_idle {
compatible = "zmk,behavior-hold-tap";
label = "GLOBAL_QUICK_TAP";
label = "REQUIRE_PRIOR_IDLE";
#binding-cells = <2>;
flavor = "tap-preferred";
tapping-term-ms = <200>;
Expand Down

0 comments on commit 11996ff

Please sign in to comment.