fix: capslock support uggly code to fix bug uwu
This commit is contained in:
parent
0ea82d6b4d
commit
662a75d233
@ -12,9 +12,11 @@ uint8_t terminal_getkey(void)
|
||||
uint8_t scan_code;
|
||||
|
||||
scan_code = inb(KEYBOARD_PORT);
|
||||
if (scan_code == KEY_RIGHT_SHIFT || scan_code == KET_LEFT_SHIFT) // || scan_code == KEY_CAPSLOCK)
|
||||
if (scan_code == 0x3A || scan_code == 0x58)
|
||||
caps = !caps;
|
||||
else if (scan_code == KEY_RIGHT_SHIFT || scan_code == KET_LEFT_SHIFT)
|
||||
caps = true;
|
||||
else if (scan_code == KEY_RIGHT_SHIFT + 128 || scan_code == KET_LEFT_SHIFT + 128) // || scan_code == KEY_CAPSLOCK + 128)
|
||||
else if (scan_code == KEY_RIGHT_SHIFT + 128 || scan_code == KET_LEFT_SHIFT + 128)
|
||||
caps = false;
|
||||
else if (scan_code != prev_scan_code && prev_scan_code != 0) {
|
||||
if (scan_code < 128 && keymap[scan_code])
|
||||
|
Loading…
Reference in New Issue
Block a user