mirror of
https://github.com/zsa/qmk_firmware.git
synced 2026-01-10 15:42:25 +00:00
[Bug] Add key event check to is_tap_record and remove is_tap_key (#18063)
This commit is contained in:
@@ -1085,20 +1085,15 @@ void clear_keyboard_but_mods_and_keys() {
|
||||
#endif
|
||||
}
|
||||
|
||||
/** \brief Utilities for actions. (FIXME: Needs better description)
|
||||
*
|
||||
* FIXME: Needs documentation.
|
||||
*/
|
||||
bool is_tap_key(keypos_t key) {
|
||||
action_t action = layer_switch_get_action(key);
|
||||
return is_tap_action(action);
|
||||
}
|
||||
|
||||
/** \brief Utilities for actions. (FIXME: Needs better description)
|
||||
*
|
||||
* FIXME: Needs documentation.
|
||||
*/
|
||||
bool is_tap_record(keyrecord_t *record) {
|
||||
if (IS_NOEVENT(record->event)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef COMBO_ENABLE
|
||||
action_t action;
|
||||
if (record->keycode) {
|
||||
|
||||
Reference in New Issue
Block a user