mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-07-06 11:50:36 -04:00
Cleaning up docs and combo logic
This commit is contained in:
parent
fa85221e82
commit
92efb790af
2 changed files with 8 additions and 22 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue