[gnome-music/freeze-break: 43/107] window: Hide search bar on Escape
- From: Arnel A. Borja <arnelborja src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/freeze-break: 43/107] window: Hide search bar on Escape
- Date: Wed, 11 Sep 2013 13:18:19 +0000 (UTC)
commit 48d53e07031627a8dd1c2a56b410732f8d5c50a7
Author: Arnel A. Borja <arnelborja src gnome org>
Date: Sat Sep 7 23:23:02 2013 +0800
window: Hide search bar on Escape
gnomemusic/window.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 681d0c9..52a0ea2 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -148,6 +148,8 @@ class Window(Gtk.ApplicationWindow):
if (event.keyval == Gdk.KEY_f and
(event.state & modifiers) == Gdk.ModifierType.CONTROL_MASK):
self._show_searchbar(not self.toolbar.searchbar.get_child_revealed())
+ elif (event.keyval == Gdk.KEY_Escape and (event.state & modifiers) == 0):
+ self._show_searchbar(False)
def _notify_mode_disconnect(self, data=None):
self._stack.disconnect(self._on_notify_model_id)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]