[Xfce4-commits] <xfce4-smartbookmark-plugin:master> Allow numpad enter to trigger the search too (bug #9663)

Landry Breuil noreply at xfce.org
Sun Dec 30 18:16:01 CET 2012


Updating branch refs/heads/master
         to fd0efa33db5a940f905eaa56597293e21de6ce08 (commit)
       from 1592b6de9aea22296e32ff9c2d5a56910e69a865 (commit)

commit fd0efa33db5a940f905eaa56597293e21de6ce08
Author: Landry Breuil <landry at xfce.org>
Date:   Sun Dec 30 18:14:28 2012 +0100

    Allow numpad enter to trigger the search too (bug #9663)
    
    While here add a comment explaining why we dont use GDK_KEY_* defines..

 src/smartbookmark.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/smartbookmark.c b/src/smartbookmark.c
index ca284b1..fee3d19 100644
--- a/src/smartbookmark.c
+++ b/src/smartbookmark.c
@@ -146,7 +146,9 @@ static gboolean entry_keypress_cb(GtkWidget *entry, GdkEventKey *event, t_search
     const gchar *key = NULL;   /* keyword */
 
     switch (event->keyval) {
+/* XXX use GDK_KEY_xx from gdkkeyssyms.h when we depend on gtk+ > 2.22 */
         case GDK_Return:
+        case GDK_KP_Enter:
             key = gtk_entry_get_text(GTK_ENTRY(entry));
 
             if (do_search(search->url, key)) {


More information about the Xfce4-commits mailing list