[gnome-music/gnome-3-10] Exit selection mode on pressing Esc
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/gnome-3-10] Exit selection mode on pressing Esc
- Date: Mon, 30 Sep 2013 09:57:46 +0000 (UTC)
commit dd710bc84b61f949a50681b9f65eae0b7a6f3022
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]