summaryrefslogtreecommitdiff
path: root/tmk_core/common/command.h
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/common/command.h')
-rw-r--r--tmk_core/common/command.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tmk_core/common/command.h b/tmk_core/common/command.h
index c38f2b9e80..e25b974630 100644
--- a/tmk_core/common/command.h
+++ b/tmk_core/common/command.h
@@ -34,6 +34,9 @@ bool command_proc(uint8_t code);
#define command_proc(code) false
#endif
+#ifndef IS_COMMAND
+#define IS_COMMAND() (keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)))
+#endif
#ifndef MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true