1
0
Fork 0

[Bug] Add key event check to is_tap_record and remove is_tap_key (#18063)

This commit is contained in:
Stefan Kerkmann 2022-08-15 16:40:51 +02:00 committed by GitHub
parent 5e6175a553
commit 8ce946b5c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 14 deletions

View file

@ -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) {