From: Christian Dywan Date: Sun, 12 Feb 2012 23:46:31 +0000 (+0100) Subject: Handle CapsLock in form history X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c87ccc3b32fefcfb45b793162f6565b4ea58440;p=midori Handle CapsLock in form history --- diff --git a/extensions/formhistory/formhistory-gdom-frontend.c b/extensions/formhistory/formhistory-gdom-frontend.c index 401477cd..8ed467dc 100644 --- a/extensions/formhistory/formhistory-gdom-frontend.c +++ b/extensions/formhistory/formhistory-gdom-frontend.c @@ -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;