diff options
| author | Alexander Ulitin <1911626+ulex@users.noreply.github.com> | 2021-02-07 17:43:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-07 08:43:39 -0800 |
| commit | 9146d30f06362b768778414ca5381183c45b7431 (patch) | |
| tree | d763bec5cac4814032c3211974bbf232338963ab | |
| parent | 02881427692b682287d19fe533c3b84aa7b42a26 (diff) | |
| download | qmk_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.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c index a3830abbf..ef01a7177 100644 --- a/tmk_core/common/action.c +++ b/tmk_core/common/action.c | |||
| @@ -1035,6 +1035,10 @@ void clear_keyboard_but_mods(void) { | |||
| 1035 | * FIXME: Needs documentation. | 1035 | * FIXME: Needs documentation. |
| 1036 | */ | 1036 | */ |
| 1037 | void clear_keyboard_but_mods_and_keys() { | 1037 | void clear_keyboard_but_mods_and_keys() { |
| 1038 | #ifdef EXTRAKEY_ENABLE | ||
| 1039 | host_system_send(0); | ||
| 1040 | host_consumer_send(0); | ||
| 1041 | #endif | ||
| 1038 | clear_weak_mods(); | 1042 | clear_weak_mods(); |
| 1039 | clear_macro_mods(); | 1043 | clear_macro_mods(); |
| 1040 | send_keyboard_report(); | 1044 | send_keyboard_report(); |
| @@ -1042,10 +1046,6 @@ void clear_keyboard_but_mods_and_keys() { | |||
| 1042 | mousekey_clear(); | 1046 | mousekey_clear(); |
| 1043 | mousekey_send(); | 1047 | mousekey_send(); |
| 1044 | #endif | 1048 | #endif |
| 1045 | #ifdef EXTRAKEY_ENABLE | ||
| 1046 | host_system_send(0); | ||
| 1047 | host_consumer_send(0); | ||
| 1048 | #endif | ||
| 1049 | } | 1049 | } |
| 1050 | 1050 | ||
| 1051 | /** \brief Utilities for actions. (FIXME: Needs better description) | 1051 | /** \brief Utilities for actions. (FIXME: Needs better description) |
