From: Alexander Butenko Date: Sun, 8 Jan 2012 18:26:37 +0000 (-0400) Subject: More selective key code excludes X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3eb4e44035fad9a34be5ab39fb23a1388fe4d14;p=midori More selective key code excludes --- 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; }