summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2017-02-21 10:10:18 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2017-02-21 11:24:08 +1000
commita6b550cb783d68d63748ecfd1a4084aec8ddc73a (patch)
treee29f679566409e85064d333991f614c3e97cc0ab /tools
parentc5d9ecbdae6251965341f932a7107e069f1b23a3 (diff)
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/event-debug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/event-debug.c b/tools/event-debug.c
index a9d15a7..548db4a 100644
--- a/tools/event-debug.c
+++ b/tools/event-debug.c
@@ -294,6 +294,7 @@ print_key_event(struct libinput *li, struct libinput_event *ev)
if (!options->show_keycodes &&
(key >= KEY_ESC && key < KEY_ZENKAKUHANKAKU)) {
keyname = "***";
+ key = -1;
} else {
keyname = libevdev_event_code_get_name(EV_KEY, key);
keyname = keyname ? keyname : "???";