Skip to content

Commit

Permalink
[keyboard] Graystudio Think6.5 V3 Support Revised (qmk#21560)
Browse files Browse the repository at this point in the history
Co-authored-by: jack <0x6a73@protonmail.com>
Co-authored-by: Duncan Sutherland <dunk2k_2000@hotmail.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
  • Loading branch information
4 people authored and jesperhellberg committed Aug 14, 2023
1 parent 7757e44 commit 313fcaa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions keyboards/crkbd/keymaps/jesperSwedish/keycode_aliases.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,18 @@ if (record->event.pressed) { \
return false;

// Shift on kc1, AltGr on kc2
// this needs to unregister it's pressed button
#define SHIFT_ALGR(kc1, kc2) \
if (record->event.pressed) { \
if (get_mods() & MOD_MASK_SHIFT) { \
unregister_code(KC_LSFT); \
clear_mods(); \
register_code(KC_RALT); \
register_code(kc2); \
register_code(KC_LSFT); \
} else { \
clear_mods(); \
register_code(KC_LSFT); \
register_code(kc1); \
unregister_code(KC_LSFT); \
} \
} else { \
unregister_code(kc1); \
Expand Down

0 comments on commit 313fcaa

Please sign in to comment.