mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-09 08:18:02 +02:00
tools: print the key as -1 for obfuscated keys
Missing from 8c1aa1de where we hid the human-readable parts but the keycode
itself is still enough information to recover the typed bits.
Print it as -1 as that keycode doesn't exist for real keys so it stands out
nicely.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
c5d9ecbdae
commit
a6b550cb78
1 changed files with 1 additions and 0 deletions
|
|
@ -294,6 +294,7 @@ print_key_event(struct libinput *li, struct libinput_event *ev)
|
||||||
if (!options->show_keycodes &&
|
if (!options->show_keycodes &&
|
||||||
(key >= KEY_ESC && key < KEY_ZENKAKUHANKAKU)) {
|
(key >= KEY_ESC && key < KEY_ZENKAKUHANKAKU)) {
|
||||||
keyname = "***";
|
keyname = "***";
|
||||||
|
key = -1;
|
||||||
} else {
|
} else {
|
||||||
keyname = libevdev_event_code_get_name(EV_KEY, key);
|
keyname = libevdev_event_code_get_name(EV_KEY, key);
|
||||||
keyname = keyname ? keyname : "???";
|
keyname = keyname ? keyname : "???";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue