[Xfce4-commits] <midori:master> Handle CapsLock in form history

Christian Dywan noreply at xfce.org
Mon Feb 13 01:30:01 CET 2012


Updating branch refs/heads/master
         to 6c87ccc3b32fefcfb45b793162f6565b4ea58440 (commit)
       from 3aa37f7953836548e28b8bedf2c148b6bc39e5ea (commit)

commit 6c87ccc3b32fefcfb45b793162f6565b4ea58440
Author: Christian Dywan <christian at twotoasts.de>
Date:   Mon Feb 13 00:46:31 2012 +0100

    Handle CapsLock in form history

 extensions/formhistory/formhistory-gdom-frontend.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/extensions/formhistory/formhistory-gdom-frontend.c b/extensions/formhistory/formhistory-gdom-frontend.c
index 401477c..8ed467d 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;


More information about the Xfce4-commits mailing list