[gnome-music/wip/jfelder/window-cleanups: 1/2] window: Search shortcut should not disable search-mode
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/window-cleanups: 1/2] window: Search shortcut should not disable search-mode
- Date: Fri, 16 Nov 2018 16:14:28 +0000 (UTC)
commit 4a72ff9d979debd4398d19989d01d8041ac6d98d
Author: Jean Felder <jfelder src gnome org>
Date: Fri Nov 16 16:57:03 2018 +0100
window: Search shortcut should not disable search-mode
Pressing on the search shortcut when the searchbar is already active
should not disable search mode but give the focus if the searchbar is
already visible.
gnomemusic/window.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index aacfb9ed..94a7eb7d 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -303,7 +303,7 @@ class Window(Gtk.ApplicationWindow):
if (keyval == Gdk.KEY_f
and not self.views[View.PLAYLIST].rename_active
and self._headerbar.props.state != HeaderBar.State.SEARCH):
- self._searchbar.toggle()
+ self._searchbar.reveal(True, False)
# Play / Pause on Ctrl + SPACE
if keyval == Gdk.KEY_space:
self._player.play_pause()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]