1
0
Fork 0

Add SS_RALT for AltGR usage in macros

This commit is contained in:
Drashna Jael're 2018-03-09 09:37:41 -08:00 committed by Jack Humbert
parent eba4b08a4a
commit 3f1d147529
2 changed files with 2 additions and 0 deletions

View file

@ -97,6 +97,7 @@ There's also a couple of mod shortcuts you can use:
* `SS_LGUI(string)` * `SS_LGUI(string)`
* `SS_LALT(string)` * `SS_LALT(string)`
* `SS_LSFT(string)` * `SS_LSFT(string)`
* `SS_RALT(string)`
These press the respective modifier, send the supplied string and then release the modifier. These press the respective modifier, send the supplied string and then release the modifier.
They can be used like this: They can be used like this:

View file

@ -124,6 +124,7 @@ extern uint32_t default_layer_state;
#define SS_LGUI(string) SS_DOWN(X_LGUI) string SS_UP(X_LGUI) #define SS_LGUI(string) SS_DOWN(X_LGUI) string SS_UP(X_LGUI)
#define SS_LALT(string) SS_DOWN(X_LALT) string SS_UP(X_LALT) #define SS_LALT(string) SS_DOWN(X_LALT) string SS_UP(X_LALT)
#define SS_LSFT(string) SS_DOWN(X_LSHIFT) string SS_UP(X_LSHIFT) #define SS_LSFT(string) SS_DOWN(X_LSHIFT) string SS_UP(X_LSHIFT)
#define SS_RALT(string) SS_DOWN(X_RALT) string SS_UP(X_RALT)
#define SEND_STRING(str) send_string_P(PSTR(str)) #define SEND_STRING(str) send_string_P(PSTR(str))
extern const bool ascii_to_shift_lut[0x80]; extern const bool ascii_to_shift_lut[0x80];