diff options
-rw-r--r-- | plugins/gtkui/callbacks.c | 2 | ||||
-rw-r--r-- | plugins/gtkui/widgets.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/plugins/gtkui/callbacks.c b/plugins/gtkui/callbacks.c index 72a05e63..f8a64a16 100644 --- a/plugins/gtkui/callbacks.c +++ b/plugins/gtkui/callbacks.c @@ -379,6 +379,7 @@ on_mainwin_key_press_event (GtkWidget *widget, if ((maskedstate == GDK_MOD1_MASK || maskedstate == 0) && event->keyval == GDK_n) { // button for that one is not in toolbar anymore, so handle it manually deadbeef->sendmessage (DB_EV_PLAY_RANDOM, 0, 0, 0); + return TRUE; } else if ((maskedstate == GDK_MOD1_MASK || maskedstate == 0) && event->keyval >= GDK_1 && event->keyval <= GDK_9) { int pl = event->keyval - GDK_1; @@ -386,6 +387,7 @@ on_mainwin_key_press_event (GtkWidget *widget, deadbeef->plt_set_curr_idx (pl); deadbeef->conf_set_int ("playlist.current", pl); } + return TRUE; } return FALSE; } diff --git a/plugins/gtkui/widgets.c b/plugins/gtkui/widgets.c index 7d6893d3..1d96441f 100644 --- a/plugins/gtkui/widgets.c +++ b/plugins/gtkui/widgets.c @@ -1773,6 +1773,7 @@ w_selproperties_create (void) { gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (w->base.widget), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); w->tree = gtk_tree_view_new (); gtk_widget_show (w->tree); + gtk_tree_view_set_enable_search (GTK_TREE_VIEW (w->tree), FALSE); gtk_container_add (GTK_CONTAINER (w->base.widget), w->tree); w->base.message = selproperties_message; |