projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1ad1d2
)
clients/editor.c: Ignore ESC key
author
Peter Maatman
<blackwolf12333@gmail.com>
Sat, 6 Jul 2013 18:42:59 +0000
(20:42 +0200)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 9 Jul 2013 23:41:12 +0000
(19:41 -0400)
Otherwise, editor would print the "unknown UTF-8 glyph" boxes.
clients/editor.c
patch
|
blob
|
history
diff --git
a/clients/editor.c
b/clients/editor.c
index
3fb645b
..
5e8ae8e
100644
(file)
--- a/
clients/editor.c
+++ b/
clients/editor.c
@@
-1155,11
+1155,13
@@
key_handler(struct window *window,
widget_schedule_redraw(entry->widget);
}
break;
+ case XKB_KEY_Escape:
+ break;
default:
if (xkb_keysym_to_utf8(sym, text, sizeof(text)) <= 0)
break;
- text_entry_commit_and_reset(entry);
+ text_entry_commit_and_reset(entry);
text_entry_insert_at_cursor(entry, text, 0, 0);
break;