Trying to fix where I couldn't alt tab

- Fixing some of the switch statements
This commit is contained in:
Victor 2024-05-12 14:55:26 -05:00
parent e43d0eabc9
commit e694a370ed
Failed to generate hash of commit

View file

@ -14,6 +14,7 @@ bool get_combo_must_tap(uint16_t index, combo_t *combo) {
case KEY_ENT: case KEY_ENT:
case KEY_TAB: case KEY_TAB:
return true; return true;
break;
default: default:
return false; return false;
@ -31,7 +32,8 @@ bool combo_should_trigger(uint16_t combo_index, combo_t *combo, uint16_t keycode
case KEY_ENT: case KEY_ENT:
case KEY_TAB: case KEY_TAB:
if ( get_highest_layer(layer_state) == _SYMBOL ) return false; if ( get_highest_layer(layer_state) == _SYMBOL ) return false;
break;
case MOUSE_BUTTON1: case MOUSE_BUTTON1:
case MOUSE_BUTTON2: case MOUSE_BUTTON2:
@ -40,8 +42,11 @@ bool combo_should_trigger(uint16_t combo_index, combo_t *combo, uint16_t keycode
case MOUSE_BUTTON5: case MOUSE_BUTTON5:
case MOUSE_DRGTOG: case MOUSE_DRGTOG:
if ( get_highest_layer(layer_state) > _DEFAULT_LAYER_1 ) return false; if ( get_highest_layer(layer_state) > _DEFAULT_LAYER_1 ) return false;
break;
default:
return true;
} }
return true;
} }