[PATCH] escape key isn't translated to utf8 anymore
blackwolf12333
blackwolf12333 at gmail.com
Mon Jun 10 13:34:05 PDT 2013
---
clients/editor.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/clients/editor.c b/clients/editor.c
index df82ed0..6f1f747 100644
--- 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; // do nothing when escape was pressed.
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;
--
1.8.3
More information about the wayland-devel
mailing list