diff options
| author | Drashna Jaelre <drashna@live.com> | 2022-11-11 18:11:50 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-12 02:11:50 +0000 |
| commit | 1caedd10c45adef49724f5aa0967e23286f4dd38 (patch) | |
| tree | 5a7c10ac0be1ec4e4fb1b8307173add18e78b577 /quantum | |
| parent | 092228571c40a31d88940055b4d2fa749f135314 (diff) | |
Don't clear keys on layer change unless STRICT_LAYER_RELEASE is enabled (#18577)
* Don't clear mousekeys unless clearing keys
* Revert "Don't clear mousekeys unless clearing keys"
This reverts commit 29a0c06b547d72b80d416a8b6fab478c77fbd247.
* Just don't clear anything on layer set
* Fix lint
* Enable test?
Diffstat (limited to 'quantum')
| -rw-r--r-- | quantum/action_layer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/quantum/action_layer.c b/quantum/action_layer.c index 8ef337a690..31cfdfe13a 100644 --- a/quantum/action_layer.c +++ b/quantum/action_layer.c | |||
| @@ -45,9 +45,9 @@ static void default_layer_state_set(layer_state_t state) { | |||
| 45 | default_layer_state = state; | 45 | default_layer_state = state; |
| 46 | default_layer_debug(); | 46 | default_layer_debug(); |
| 47 | debug("\n"); | 47 | debug("\n"); |
| 48 | #ifdef STRICT_LAYER_RELEASE | 48 | #if defined(STRICT_LAYER_RELEASE) |
| 49 | clear_keyboard_but_mods(); // To avoid stuck keys | 49 | clear_keyboard_but_mods(); // To avoid stuck keys |
| 50 | #else | 50 | #elif defined(SEMI_STRICT_LAYER_RELEASE) |
| 51 | clear_keyboard_but_mods_and_keys(); // Don't reset held keys | 51 | clear_keyboard_but_mods_and_keys(); // Don't reset held keys |
| 52 | #endif | 52 | #endif |
| 53 | } | 53 | } |
| @@ -125,9 +125,9 @@ void layer_state_set(layer_state_t state) { | |||
| 125 | layer_state = state; | 125 | layer_state = state; |
| 126 | layer_debug(); | 126 | layer_debug(); |
| 127 | dprintln(); | 127 | dprintln(); |
| 128 | # ifdef STRICT_LAYER_RELEASE | 128 | # if defined(STRICT_LAYER_RELEASE) |
| 129 | clear_keyboard_but_mods(); // To avoid stuck keys | 129 | clear_keyboard_but_mods(); // To avoid stuck keys |
| 130 | # else | 130 | # elif defined(SEMI_STRICT_LAYER_RELEASE) |
| 131 | clear_keyboard_but_mods_and_keys(); // Don't reset held keys | 131 | clear_keyboard_but_mods_and_keys(); // Don't reset held keys |
| 132 | # endif | 132 | # endif |
| 133 | } | 133 | } |
