From c3eb4e44035fad9a34be5ab39fb23a1388fe4d14 Mon Sep 17 00:00:00 2001 From: Alexander Butenko Date: Sun, 8 Jan 2012 14:26:37 -0400 Subject: [PATCH] More selective key code excludes --- extensions/formhistory/formhistory-gdom-frontend.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/extensions/formhistory/formhistory-gdom-frontend.c b/extensions/formhistory/formhistory-gdom-frontend.c index f0cf1aff..3b4b9f92 100644 --- a/extensions/formhistory/formhistory-gdom-frontend.c +++ b/extensions/formhistory/formhistory-gdom-frontend.c @@ -264,9 +264,6 @@ formhistory_editbox_key_pressed_cb (WebKitDOMElement* element, priv->element = element; key = webkit_dom_ui_event_get_key_code (WEBKIT_DOM_UI_EVENT (dom_event)); - /* Ignore some control chars */ - if (key < 20 && key != 8) - return; switch (key) { /* ESC key*/ @@ -337,6 +334,12 @@ formhistory_editbox_key_pressed_cb (WebKitDOMElement* element, case 33: case 34: case 45: + /* Shift, Ctrl, Alt, Tab*/ + case 16: + case 17: + case 18: + case 9: + return; break; } -- 2.39.5