From 6c87ccc3b32fefcfb45b793162f6565b4ea58440 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 13 Feb 2012 00:46:31 +0100 Subject: [PATCH] Handle CapsLock in form history --- extensions/formhistory/formhistory-gdom-frontend.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.39.5