summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Ulitin <1911626+ulex@users.noreply.github.com>2021-02-07 17:43:39 +0100
committerGitHub <noreply@github.com>2021-02-07 08:43:39 -0800
commit9146d30f06362b768778414ca5381183c45b7431 (patch)
treed763bec5cac4814032c3211974bbf232338963ab
parent02881427692b682287d19fe533c3b84aa7b42a26 (diff)
downloadqmk_firmware-9146d30f06362b768778414ca5381183c45b7431.tar.gz
qmk_firmware-9146d30f06362b768778414ca5381183c45b7431.zip
[Bug] Fix media key missing upstroke event (#11162)
[Bug] Pressing media key on a momentarily activated layer may leads to missing key up events.
-rw-r--r--tmk_core/common/action.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c
index a3830abbff..ef01a71776 100644
--- a/tmk_core/common/action.c
+++ b/tmk_core/common/action.c
@@ -1035,6 +1035,10 @@ 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();
@@ -1042,10 +1046,6 @@ void clear_keyboard_but_mods_and_keys() {
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)