[gnome-music] Exit selection mode on pressing Esc
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Exit selection mode on pressing Esc
- Date: Mon, 30 Sep 2013 09:55:22 +0000 (UTC)
commit 0c8a8c1abcc7c891745b4243b61b557ef02bec64
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date: Mon Sep 30 11:39:23 2013 +0200
Exit selection mode on pressing Esc
gnomemusic/window.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 3385e40..579eddc 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -152,6 +152,8 @@ class Window(Gtk.ApplicationWindow):
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)
+ if self.toolbar._selectionMode:
+ self.toolbar.set_selection_mode(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]