Cleaning up docs and combo logic

This commit is contained in:
Victor 2024-05-01 22:19:20 -05:00
parent fa85221e82
commit 92efb790af
Failed to generate hash of commit
2 changed files with 8 additions and 22 deletions

View file

@ -11,9 +11,8 @@ uint16_t get_combo_term(uint16_t index, combo_t *combo) {
}
bool get_combo_must_tap(uint16_t index, combo_t *combo) {
switch (index) {
switch (index) {
#if defined(MOUSEKEY_ENABLE)
case MOUSE_BUTTON3:
@ -63,8 +62,13 @@ bool combo_should_trigger(uint16_t combo_index, combo_t *combo, uint16_t keycode
switch (combo_index) {
case KEY_ESC:
case KEY_ENT:
if ( get_highest_layer(layer_state) == _SYMBOL ) {
return false;
}
break;
case KEY_ESC:
case KEY_TAB:
if ( get_highest_layer(layer_state) == _NAVIGATION ||
get_highest_layer(layer_state) == _SYMBOL ) {
@ -78,9 +82,7 @@ bool combo_should_trigger(uint16_t combo_index, combo_t *combo, uint16_t keycode
case MOUSE_BUTTON4:
case MOUSE_BUTTON5:
case MOUSE_DRGTOG:
if ( get_highest_layer(layer_state) == _NAVIGATION ||
get_highest_layer(layer_state) == _NUMBER ||
get_highest_layer(layer_state) == _SYMBOL ) {
if ( get_highest_layer(layer_state) > _DEFAULT_LAYER_1 ) {
return false;
}
break;