summaryrefslogtreecommitdiffstats
path: root/users/konstantin/konstantin.h
diff options
context:
space:
mode:
authorKonstantin Đorđević <vomindoraan@gmail.com>2019-01-27 17:46:54 +0100
committerDrashna Jaelre <drashna@live.com>2019-01-27 08:46:54 -0800
commit6ba0b818e9ab8830610ab2a74515227884f93abc (patch)
treeb6a8761351604b6fe222b0e0196d24c447d4db97 /users/konstantin/konstantin.h
parent5c1d4baec4a178df3845c724ec48f8e9bba47b74 (diff)
[Keymap] Update personal userspace and keymaps (#4963)
* Remove duplicated or unnecessary definitions in config.h and rules.mk * Use IS_HOST_LED_ON() macro * Add mouse acceleration to kbd6x:konstantin keymap * Clear and restore mods when sending macros * Make SEND_STRING_CLEAN a config option * Add NO_ACTION_ONESHOT to userspace config
Diffstat (limited to 'users/konstantin/konstantin.h')
-rw-r--r--users/konstantin/konstantin.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/users/konstantin/konstantin.h b/users/konstantin/konstantin.h
index 06081496b6..f67f9f1b7e 100644
--- a/users/konstantin/konstantin.h
+++ b/users/konstantin/konstantin.h
@@ -25,6 +25,16 @@
#define LCT_CPS LCTL_T(KC_CAPS)
+#ifdef SEND_STRING_CLEAN
+ #undef SEND_STRING
+ #define SEND_STRING(...) { \
+ uint8_t ss_mods = get_mods(); \
+ clear_mods(); \
+ send_string_P(PSTR(__VA_ARGS__)); \
+ set_mods(ss_mods); \
+ }
+#endif
+
enum keycodes_user {
CLEAR = SAFE_RANGE,
#ifdef LAYER_NUMPAD