diff options
| author | Ryan <fauxpark@gmail.com> | 2023-02-27 20:28:15 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-27 20:28:15 +1100 |
| commit | b865b9e1706ad28ae4882bd2e0331e98808295fa (patch) | |
| tree | d4e3e57aac1a829a191831efd2e62c8a43217885 /docs/ChangeLog | |
| parent | 1d182995ed71ba6d014a6e3360ef39e5d33cfbfb (diff) | |
Add changelog for Leader Key refactor (#19953)
Diffstat (limited to 'docs/ChangeLog')
| -rw-r--r-- | docs/ChangeLog/20230226.md | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/ChangeLog/20230226.md b/docs/ChangeLog/20230226.md index f16371b99f..df5095ac7b 100644 --- a/docs/ChangeLog/20230226.md +++ b/docs/ChangeLog/20230226.md | |||
| @@ -82,6 +82,31 @@ uint16_t get_quick_tap_term(uint16_t keycode, keyrecord_t *record) { | |||
| 82 | 82 | ||
| 83 | For more details, please read the updated documentation section on [Quick Tap Term](tap_hold.md#quick-tap-term). | 83 | For more details, please read the updated documentation section on [Quick Tap Term](tap_hold.md#quick-tap-term). |
| 84 | 84 | ||
| 85 | ### Leader Key Rework :id=leader-key-rework ([#19632](https://github.com/qmk/qmk_firmware/pull/19632)) | ||
| 86 | |||
| 87 | The Leader Key feature API has been significantly improved, along with some bugfixes and added tests. | ||
| 88 | |||
| 89 | Instead of defining your leader sequences in `matrix_scan_user()`, they are now handled in the `leader_end_user()` callback, and the `LEADER_EXTERNS()`/`LEADER_DICTIONARY()` macros are no longer needed: | ||
| 90 | |||
| 91 | ```c | ||
| 92 | void leader_end_user(void) { | ||
| 93 | if (leader_sequence_one_key(KC_F)) { | ||
| 94 | // Leader, f => Types the below string | ||
| 95 | SEND_STRING("QMK is awesome."); | ||
| 96 | } else if (leader_sequence_two_keys(KC_D, KC_D)) { | ||
| 97 | // Leader, d, d => Ctrl+A, Ctrl+C | ||
| 98 | SEND_STRING(SS_LCTL("a") SS_LCTL("c")); | ||
| 99 | } else if (leader_sequence_three_keys(KC_D, KC_D, KC_S)) { | ||
| 100 | // Leader, d, d, s => Types the below string | ||
| 101 | SEND_STRING("https://start.duckduckgo.com\n"); | ||
| 102 | } else if (leader_sequence_two_keys(KC_A, KC_S)) { | ||
| 103 | // Leader, a, s => GUI+S | ||
| 104 | tap_code16(LGUI(KC_S)); | ||
| 105 | } | ||
| 106 | } | ||
| 107 | ``` | ||
| 108 | |||
| 109 | For more information please see the [Leader Key documentation](feature_leader_key.md). | ||
| 85 | 110 | ||
| 86 | ### Updated Keyboard Codebases :id=updated-keyboard-codebases | 111 | ### Updated Keyboard Codebases :id=updated-keyboard-codebases |
| 87 | 112 | ||
