[PATCH weston] clients/editor.c: esc key no longer prints out utf8 character

blackwolf12333 blackwolf12333 at gmail.com
Sat Jul 6 11:42:59 PDT 2013


---
 clients/editor.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/clients/editor.c b/clients/editor.c
index 0035904..b9579af 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.2



More information about the wayland-devel mailing list