mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-17 08:37:17 -04:00
Transform the key to ascii
This commit is contained in:
parent
45c9d1276f
commit
03cc03404b
@ -120,7 +120,7 @@ void keyboard_handler(const interrupt::syscall_regs&){
|
|||||||
++count;
|
++count;
|
||||||
} else {
|
} else {
|
||||||
auto pid = queue.wake_up();
|
auto pid = queue.wake_up();
|
||||||
give_char(pid, key);
|
give_char(pid, keyboard::shift_key_to_ascii(key));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -143,7 +143,7 @@ void keyboard::get_char_blocking(){
|
|||||||
--count;
|
--count;
|
||||||
|
|
||||||
auto pid = scheduler::get_pid();
|
auto pid = scheduler::get_pid();
|
||||||
give_char(pid, key);
|
give_char(pid, shift_key_to_ascii(key));
|
||||||
} else {
|
} else {
|
||||||
//Wait for a char
|
//Wait for a char
|
||||||
queue.sleep();
|
queue.sleep();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user