]> spindle.queued.net Git - midori/commitdiff
More selective key code excludes
authorAlexander Butenko <a.butenka@gmail.com>
Sun, 8 Jan 2012 18:26:37 +0000 (14:26 -0400)
committerChristian Dywan <christian@twotoasts.de>
Wed, 11 Jan 2012 20:04:46 +0000 (21:04 +0100)
extensions/formhistory/formhistory-gdom-frontend.c

index f0cf1aff7aec5a7bf30801a401df4c79b7e0f2d4..3b4b9f92af1ab72308971da71fc05aad491cb971 100644 (file)
@@ -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;
     }