]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
Fix modifier stuck of Lock command(#127)
authortmk <hasu@tmk-kbd.com>
Thu, 1 Jan 2015 03:17:11 +0000 (12:17 +0900)
committertmk <hasu@tmk-kbd.com>
Thu, 1 Jan 2015 03:17:11 +0000 (12:17 +0900)
common/command.c

index 971ef7f0af4ba9f4ba1cbd5a80c4327818b424f9..1a507e3a462050ae07a7b3375ae39ac7351f284f 100644 (file)
@@ -194,6 +194,7 @@ static bool command_common(uint8_t code)
         case KC_CAPSLOCK:
             if (host_get_driver()) {
                 host_driver = host_get_driver();
+                clear_keyboard();
                 host_set_driver(0);
                 print("Locked.\n");
             } else {