Skip to content

Commit

Permalink
howing rawkeys only for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
adamperkowski committed Jul 19, 2024
1 parent 3240986 commit 8068612
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shell/src/interrupts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ extern "x86-interrupt" fn keyboard_interrupt_handler(_stack_frame: InterruptStac
if let Some(key) = keyboard.process_keyevent(key_event) {
match key {
DecodedKey::Unicode(character) => print!("{}", character),
#[cfg(debug_assertions)]
DecodedKey::RawKey(key) => print!("{:?}", key),
#[cfg(not(debug_assertions))]
DecodedKey::RawKey(key) => (),
}
}
}
Expand Down

0 comments on commit 8068612

Please sign in to comment.