[Bug] Add key event check to is_tap_record
and remove is_tap_key
(#18063)
This commit is contained in:
parent
5e6175a553
commit
8ce946b5c8
3 changed files with 4 additions and 14 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue