Minimig: fix caps lock key.

This commit is contained in:
sorgelig
2018-06-21 16:07:20 +08:00
parent fa4422fc2e
commit 6aade8b21c

View File

@@ -1663,11 +1663,11 @@ static void send_keycode(unsigned short key, int press)
if (code & CAPS_TOGGLE)
{
if (press = 1)
if (press)
{
// send alternating make and break codes for caps lock
if(caps_lock_toggle) code |= 0x80;
caps_lock_toggle = !caps_lock_toggle;
caps_lock_toggle ^= HID_LED_CAPS_LOCK;
set_kbd_led(HID_LED_CAPS_LOCK, caps_lock_toggle);
}
else