core: Fix for stuck key problem #441
- Idea form https://github.com/qmk/qmk_firmware/pull/182 - Define NO_TRACK_KEY_PRESS to get old behaviour - This should resolve #105, #248, #397, #441 and FAQ entry: https://github.com/tmk/tmk_keyboard/wiki/FAQ-Keymap#modifierlayer-stuck
This commit is contained in:
parent
cf9f157a7f
commit
ba2883fd9a
6 changed files with 48 additions and 16 deletions
|
|
@ -65,7 +65,7 @@ void process_action(keyrecord_t *record)
|
|||
|
||||
if (IS_NOEVENT(event)) { return; }
|
||||
|
||||
action_t action = layer_switch_get_action(event.key);
|
||||
action_t action = layer_switch_get_action(event);
|
||||
dprint("ACTION: "); debug_action(action);
|
||||
#ifndef NO_ACTION_LAYER
|
||||
dprint(" layer_state: "); layer_debug();
|
||||
|
|
@ -529,9 +529,9 @@ void clear_keyboard_but_mods(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
bool is_tap_key(keypos_t key)
|
||||
bool is_tap_key(keyevent_t event)
|
||||
{
|
||||
action_t action = layer_switch_get_action(key);
|
||||
action_t action = layer_switch_get_action(event);
|
||||
|
||||
switch (action.kind.id) {
|
||||
case ACT_LMODS_TAP:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue