From 27b7d668dc71c2fe4ee3380452f60ff5eb6b7703 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sun, 5 Jan 2014 00:05:35 -0500 Subject: [PATCH] Stop unintentional fallthrough to mouse keys --- ArduinoKeyboard.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduinoKeyboard.ino b/ArduinoKeyboard.ino index 10e1a56c..d7a01d65 100644 --- a/ArduinoKeyboard.ino +++ b/ArduinoKeyboard.ino @@ -228,12 +228,12 @@ void send_key_events(byte layer) Keyboard.consumerControl(mappedKey.rawKey); } } - if(mappedKey.flags & IS_SYSCTL) { + else if(mappedKey.flags & IS_SYSCTL) { if (key_toggled_on (switchState)) { Keyboard.systemControl(mappedKey.rawKey); } } - if(mappedKey.flags & IS_MACRO) { + else if(mappedKey.flags & IS_MACRO) { if (key_toggled_on (switchState)) { if (mappedKey.rawKey == 1) { Keyboard.print("Keyboard.IO keyboard driver v0.00");