Browse Source

Don't clear mousekeys unless clearing keys

pull/18577/head
Drashna Jael're 1 year ago
parent
commit
29a0c06b54
No known key found for this signature in database GPG Key ID: DBA1FD3A860D1B11
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      quantum/action.c

+ 4
- 4
quantum/action.c View File

@ -1053,6 +1053,10 @@ __attribute__((weak)) void unregister_weak_mods(uint8_t mods) {
void clear_keyboard(void) {
clear_mods();
clear_keyboard_but_mods();
#ifdef MOUSEKEY_ENABLE
mousekey_clear();
mousekey_send();
#endif
}
/** \brief Utilities for actions. (FIXME: Needs better description)
@ -1075,10 +1079,6 @@ void clear_keyboard_but_mods_and_keys() {
#endif
clear_weak_mods();
send_keyboard_report();
#ifdef MOUSEKEY_ENABLE
mousekey_clear();
mousekey_send();
#endif
#ifdef PROGRAMMABLE_BUTTON_ENABLE
programmable_button_clear();
programmable_button_send();


Loading…
Cancel
Save