diff options
author | Drashna Jael're <drashna@live.com> | 2018-03-09 09:37:41 -0800 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2018-03-09 13:15:10 -0500 |
commit | 3f1d147529233ebcc918cd3e4c96a8d249c321ce (patch) | |
tree | d07f21f3935acaa4f40d98e8ecdba311f9bc425a | |
parent | eba4b08a4a8734bb6c74602e317981a4542c634d (diff) |
Add SS_RALT for AltGR usage in macros
-rw-r--r-- | docs/feature_macros.md | 1 | ||||
-rw-r--r-- | quantum/quantum.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/docs/feature_macros.md b/docs/feature_macros.md index e77d7afea3..006fa04bca 100644 --- a/docs/feature_macros.md +++ b/docs/feature_macros.md @@ -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: diff --git a/quantum/quantum.h b/quantum/quantum.h index b4c9e0b894..e6d76015b0 100644 --- a/quantum/quantum.h +++ b/quantum/quantum.h @@ -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]; |