/* return layer effective for key at this time */
static uint8_t current_layer_for_key(keypos_t key)
{
- action_t action = ACTION_TRANSPARENT;
-
#ifndef NO_ACTION_LAYER
+ action_t action = ACTION_TRANSPARENT;
uint32_t layers = layer_state | default_layer_state;
/* check top layer first */
for (int8_t i = 31; i >= 0; i--) {
#endif
action_t layer_switch_get_action(keyevent_t event)
{
+ if (IS_NOEVENT(event)) return (action_t)ACTION_NO;
+
uint8_t layer = 0;
#ifndef NO_TRACK_KEY_PRESS
if (event.pressed) {