mirror of
https://github.com/qmk/qmk_userspace.git
synced 2026-03-07 00:01:09 -05:00
Add Shift+Tab on Shift+Alt+A
Maps Shift+Alt+A to send Shift+Tab, providing easy access to reverse tab navigation. Complements the existing Alt+A → Tab mapping.
This commit is contained in:
parent
8c32072556
commit
17fcb8e888
2 changed files with 6 additions and 2 deletions
|
|
@ -119,7 +119,7 @@ const key_override_t o_key_shift_alt_override = ko_make_with_layers_and_negmods(
|
||||||
const key_override_t p_key_shift_alt_override = ko_make_with_layers_and_negmods(MOD_MASK_SA, KC_P, KC_NO, QWERTY_LAYERS, MOD_MASK_GUI);
|
const key_override_t p_key_shift_alt_override = ko_make_with_layers_and_negmods(MOD_MASK_SA, KC_P, KC_NO, QWERTY_LAYERS, MOD_MASK_GUI);
|
||||||
|
|
||||||
// Middle row
|
// Middle row
|
||||||
const key_override_t a_key_shift_alt_override = ko_make_with_layers_and_negmods(MOD_MASK_SA, KC_A, KC_NO, QWERTY_LAYERS, MOD_MASK_GUI);
|
const key_override_t a_key_shift_alt_override = ko_make_with_layers_and_negmods(MOD_MASK_SA, KC_A, LSFT(KC_TAB), QWERTY_LAYERS, MOD_MASK_GUI);
|
||||||
const key_override_t s_key_shift_alt_override = ko_make_with_layers_and_negmods(MOD_MASK_SA, KC_S, KC_NO, QWERTY_LAYERS, MOD_MASK_GUI);
|
const key_override_t s_key_shift_alt_override = ko_make_with_layers_and_negmods(MOD_MASK_SA, KC_S, KC_NO, QWERTY_LAYERS, MOD_MASK_GUI);
|
||||||
// D, F, J, K handled in process_record_user() due to mod-tap interference
|
// D, F, J, K handled in process_record_user() due to mod-tap interference
|
||||||
const key_override_t g_key_shift_alt_override = ko_make_with_layers_and_negmods(MOD_MASK_SA, KC_G, KC_NO, QWERTY_LAYERS, MOD_MASK_GUI);
|
const key_override_t g_key_shift_alt_override = ko_make_with_layers_and_negmods(MOD_MASK_SA, KC_G, KC_NO, QWERTY_LAYERS, MOD_MASK_GUI);
|
||||||
|
|
@ -437,6 +437,10 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
|
||||||
// Handle Shift+Alt+key repeat behavior for non-homerow keys
|
// Handle Shift+Alt+key repeat behavior for non-homerow keys
|
||||||
switch(keycode) {
|
switch(keycode) {
|
||||||
|
case KC_A: // Shift+Alt+A → Shift+Tab
|
||||||
|
set_last_keycode(KC_TAB);
|
||||||
|
set_last_mods(MOD_BIT(KC_LSFT));
|
||||||
|
break;
|
||||||
case KC_W: // Shift+Alt+W → € (Alt+2 on macOS)
|
case KC_W: // Shift+Alt+W → € (Alt+2 on macOS)
|
||||||
set_last_keycode(KC_2);
|
set_last_keycode(KC_2);
|
||||||
set_last_mods(MOD_BIT(KC_LALT));
|
set_last_mods(MOD_BIT(KC_LALT));
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ layers:
|
||||||
- [{t: TO(NAV)}, {t: OSM Shift}, {type: held}, Space]
|
- [{t: TO(NAV)}, {t: OSM Shift}, {type: held}, Space]
|
||||||
BASE_SHIFT_ALT:
|
BASE_SHIFT_ALT:
|
||||||
- [null, "€", null, "£", null, null, null, null, null, null]
|
- [null, "€", null, "£", null, null, null, null, null, null]
|
||||||
- [null, null, null, null, null, null, "{", "!", "}", "Shift+Enter"]
|
- ["Shift+Tab", null, null, null, null, null, "{", "!", "}", "Shift+Enter"]
|
||||||
- [null, "“", "‘", "’", "”", null, "<", null, ">", null]
|
- [null, "“", "‘", "’", "”", null, "<", null, ">", null]
|
||||||
- [{t: TO(NAV)}, {type: held}, {type: held}, Space]
|
- [{t: TO(NAV)}, {type: held}, {type: held}, Space]
|
||||||
NAV:
|
NAV:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue