aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/input/ps2/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/input/ps2/keyboard.c')
-rw-r--r--src/kernel/input/ps2/keyboard.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/kernel/input/ps2/keyboard.c b/src/kernel/input/ps2/keyboard.c
index e092630..100c0d8 100644
--- a/src/kernel/input/ps2/keyboard.c
+++ b/src/kernel/input/ps2/keyboard.c
@@ -37,10 +37,8 @@ void keyboard_handler(struct regs *r) {
scan_code = receive_b(0x60);
- if (scan_code & 0x80) {
- // Release
- } else {
- terminal_put_char(keymap[scan_code]);
+ if (!(scan_code & 0x80)) {
+ terminal_put_keyboard_char(keymap[scan_code]);
}
}