mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-25 20:56:42 +00:00
Don't clear mousekeys unless clearing keys
This commit is contained in:
parent
64b1ed4550
commit
29a0c06b54
@ -1053,6 +1053,10 @@ __attribute__((weak)) void unregister_weak_mods(uint8_t mods) {
|
|||||||
void clear_keyboard(void) {
|
void clear_keyboard(void) {
|
||||||
clear_mods();
|
clear_mods();
|
||||||
clear_keyboard_but_mods();
|
clear_keyboard_but_mods();
|
||||||
|
#ifdef MOUSEKEY_ENABLE
|
||||||
|
mousekey_clear();
|
||||||
|
mousekey_send();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/** \brief Utilities for actions. (FIXME: Needs better description)
|
/** \brief Utilities for actions. (FIXME: Needs better description)
|
||||||
@ -1075,10 +1079,6 @@ void clear_keyboard_but_mods_and_keys() {
|
|||||||
#endif
|
#endif
|
||||||
clear_weak_mods();
|
clear_weak_mods();
|
||||||
send_keyboard_report();
|
send_keyboard_report();
|
||||||
#ifdef MOUSEKEY_ENABLE
|
|
||||||
mousekey_clear();
|
|
||||||
mousekey_send();
|
|
||||||
#endif
|
|
||||||
#ifdef PROGRAMMABLE_BUTTON_ENABLE
|
#ifdef PROGRAMMABLE_BUTTON_ENABLE
|
||||||
programmable_button_clear();
|
programmable_button_clear();
|
||||||
programmable_button_send();
|
programmable_button_send();
|
||||||
|
Loading…
Reference in New Issue
Block a user