Skip to content

Commit

Permalink
output keyval as hex
Browse files Browse the repository at this point in the history
  • Loading branch information
tesuji committed May 17, 2024
1 parent 6ae2422 commit 8ea67d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gokien/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl GokienEngine {

pub fn process_key(&mut self, keyval: guint, state: guint) -> bool {
use State::*;
debug!(keyval, state);
debug!(keyval = format_args!("0x{keyval:04x}"), state);
// do not handle key released events, only consider key pressed ones
if state & c::IBUS_RELEASE_MASK != 0 {
return false;
Expand Down

0 comments on commit 8ea67d5

Please sign in to comment.