~ruther/qmk_firmware

7ff96877d2a67fcfabbe2493e7c2a100f3b923da — Gilbert Consellado 7 years ago c6cdd54
added SS_LSFT to featured macros
2 files changed, 2 insertions(+), 0 deletions(-)

M docs/feature_macros.md
M quantum/quantum.h
M docs/feature_macros.md => docs/feature_macros.md +1 -0
@@ 96,6 96,7 @@ There's also a couple of mod shortcuts you can use:
* `SS_LCTRL(string)`
* `SS_LGUI(string)`
* `SS_LALT(string)`
* `SS_LSFT(string)`

These press the respective modifier, send the supplied string and then release the modifier.
They can be used like this:

M quantum/quantum.h => quantum/quantum.h +1 -0
@@ 124,6 124,7 @@ extern uint32_t default_layer_state;
#define SS_LCTRL(string) SS_DOWN(X_LCTRL) string SS_UP(X_LCTRL)
#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 SEND_STRING(str) send_string_P(PSTR(str))
extern const bool ascii_to_shift_lut[0x80];