Transform the key to ascii

This commit is contained in:
Baptiste Wicht 2014-01-30 17:55:16 +01:00
parent 45c9d1276f
commit 03cc03404b

View File

@ -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();