summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9eedd15)
raw | patch | inline | side by side (parent: 9eedd15)
author | Max Kellermann <max.kellermann@gmail.com> | |
Mon, 20 Mar 2017 11:19:29 +0000 (12:19 +0100) | ||
committer | Max Kellermann <max.kellermann@gmail.com> | |
Mon, 20 Mar 2017 11:19:29 +0000 (12:19 +0100) |
src/keyboard.c | patch | blob | history |
diff --git a/src/keyboard.c b/src/keyboard.c
index da0b5a20e6fd2dcfc6f95666925746591593b277..d990e3691e7854d011672527062f9d51fc7ede70 100644 (file)
--- a/src/keyboard.c
+++ b/src/keyboard.c
void
keyboard_unread(int key)
{
- ungetch(key);
-
- command_t cmd = get_keyboard_command();
+ command_t cmd = translate_key(key);
if (cmd != CMD_NONE)
do_input_event(cmd);
}