summaryrefslogtreecommitdiff
path: root/hhkb/config_pjrc.h
diff options
context:
space:
mode:
Diffstat (limited to 'hhkb/config_pjrc.h')
-rw-r--r--hhkb/config_pjrc.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/hhkb/config_pjrc.h b/hhkb/config_pjrc.h
index ef2efe2d93..8379202ca8 100644
--- a/hhkb/config_pjrc.h
+++ b/hhkb/config_pjrc.h
@@ -36,11 +36,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* key combination for command */
-#define IS_COMMAND() ( \
- keyboard_report->mods == (BIT_LSHIFT | BIT_RSHIFT) || \
- keyboard_report->mods == (BIT_LCTRL | BIT_RSHIFT) \
-)
-
+#define IS_COMMAND() (keyboard_report->mods == (MOD_BIT(KB_LSHIFT) | MOD_BIT(KB_RSHIFT)))
/* mouse keys */
#ifdef MOUSEKEY_ENABLE