Skip to content

Commit

Permalink
[Bug] Fix media key missing upstroke event (qmk#11162)
Browse files Browse the repository at this point in the history
[Bug] Pressing media key on a momentarily activated layer may leads to
missing key up events.
  • Loading branch information
ulex authored Feb 7, 2021
1 parent 8d7eca9 commit 98dade1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tmk_core/common/action.c
Original file line number Diff line number Diff line change
Expand Up @@ -1035,17 +1035,17 @@ void clear_keyboard_but_mods(void) {
* FIXME: Needs documentation.
*/
void clear_keyboard_but_mods_and_keys() {
#ifdef EXTRAKEY_ENABLE
host_system_send(0);
host_consumer_send(0);
#endif
clear_weak_mods();
clear_macro_mods();
send_keyboard_report();
#ifdef MOUSEKEY_ENABLE
mousekey_clear();
mousekey_send();
#endif
#ifdef EXTRAKEY_ENABLE
host_system_send(0);
host_consumer_send(0);
#endif
}

/** \brief Utilities for actions. (FIXME: Needs better description)
Expand Down

0 comments on commit 98dade1

Please sign in to comment.