Skip to content

Commit 2838845

Browse files
fix caps lock
1 parent b81969a commit 2838845

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/keyboard.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,12 +344,11 @@ void keyboard_handler(uint8_t isr, uint64_t errorcode, uint64_t irq, void *opaqu
344344
alt_state = false;
345345
break;
346346
case 0x3A:
347-
caps_lock = true;
347+
caps_lock = !caps_lock;
348348
break;
349349
case 0xBA:
350-
caps_lock = false;
350+
/* Caps lock release */
351351
break;
352-
353352
default: {
354353
if ((sc & 0x80) == 0) {
355354
/* make */

0 commit comments

Comments
 (0)