]> spindle.queued.net Git - midori/commitdiff
Handle CapsLock in form history
authorChristian Dywan <christian@twotoasts.de>
Sun, 12 Feb 2012 23:46:31 +0000 (00:46 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sun, 12 Feb 2012 23:46:31 +0000 (00:46 +0100)
extensions/formhistory/formhistory-gdom-frontend.c

index 401477cd8b012ff687de5b2373083d4228f473d4..8ed467dcd5bfb215ec287627805a10386cc9bad4 100644 (file)
@@ -278,6 +278,8 @@ formhistory_editbox_key_pressed_cb (WebKitDOMElement* element,
         case 37:
         /* Right key*/
         case 39:
+        /* Enter key*/
+        case 13:
             if (key == 27)
                 g_object_set (element, "value", priv->oldkeyword, NULL);
             formhistory_suggestions_hide_cb (element, dom_event, priv);
@@ -338,10 +340,11 @@ formhistory_editbox_key_pressed_cb (WebKitDOMElement* element,
         case 33:
         case 34:
         case 45:
-        /* Shift, Ctrl, Alt, Tab*/
+        /* Shift, Ctrl, Alt, Tab, Caps Lock*/
         case 16:
         case 17:
         case 18:
+        case 20:
         case 9:
             return;
             break;