]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Add SS_RALT for AltGR usage in macros
authorDrashna Jael're <drashna@live.com>
Fri, 9 Mar 2018 17:37:41 +0000 (09:37 -0800)
committerJack Humbert <jack.humb@gmail.com>
Fri, 9 Mar 2018 18:15:10 +0000 (13:15 -0500)
docs/feature_macros.md
quantum/quantum.h

index e77d7afea30dd9d2e0af2ed1278738eb87f7367f..006fa04bca97e9c316c9f3e967dffc14eb1e7157 100644 (file)
@@ -97,6 +97,7 @@ There's also a couple of mod shortcuts you can use:
 * `SS_LGUI(string)`
 * `SS_LALT(string)`
 * `SS_LSFT(string)`
+* `SS_RALT(string)`
 
 These press the respective modifier, send the supplied string and then release the modifier.
 They can be used like this:
index b4c9e0b894c48acae66226af33d9e11ad62a3296..e6d76015b0dabc3e81534380ac7499eba3f2bc7e 100644 (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_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_RALT(string) SS_DOWN(X_RALT) string SS_UP(X_RALT)
 
 #define SEND_STRING(str) send_string_P(PSTR(str))
 extern const bool ascii_to_shift_lut[0x80];