diff --git a/ArduinoKeyboard.ino b/ArduinoKeyboard.ino index f2b9f926..f6b16133 100644 --- a/ArduinoKeyboard.ino +++ b/ArduinoKeyboard.ino @@ -196,11 +196,11 @@ void send_key_events(int layer) { } } else if (mappedKey.flags & SYNTHETIC_KEY) { - if (mappedKey.rawKey == KEY_MOUSE_BTN_L || mappedKey.rawKey == KEY_MOUSE_BTN_M|| mappedKey.rawKey == KEY_MOUSE_BTN_R) { + if (mappedKey.rawKey == KEY_MOUSE_BTN_L || mappedKey.rawKey == KEY_MOUSE_BTN_M|| mappedKey.rawKey == KEY_MOUSE_BTN_R) { if (key_toggled_on (switchState)) { Mouse.press(mappedKey.rawKey); } else if (key_is_pressed(switchState)) { - } else if (Mouse.isPressed(mappedKey.rawKey) ){ + } else if (Mouse.isPressed(mappedKey.rawKey) ) { Mouse.release(mappedKey.rawKey); } }