[gnome-music] shortcuts: Remove ctrl+p for Play/Pause
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] shortcuts: Remove ctrl+p for Play/Pause
- Date: Mon, 12 Sep 2016 20:13:54 +0000 (UTC)
commit 715d482465f50525b7813f0be51e8e0e3bfa937f
Author: Yash Singh <yashdev10p gmail com>
Date: Mon Sep 12 19:31:36 2016 +0530
shortcuts: Remove ctrl+p for Play/Pause
Ctrl+P conflicts with move-cursor signal for TreeView.
This patch removes ctrl+p as a shortcut for toggling play/pause.
https://bugzilla.gnome.org/show_bug.cgi?id=754096
data/help-overlay.ui | 2 +-
gnomemusic/window.py | 5 ++---
2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/data/help-overlay.ui b/data/help-overlay.ui
index f817127..e33d626 100644
--- a/data/help-overlay.ui
+++ b/data/help-overlay.ui
@@ -49,7 +49,7 @@
<object class="GtkShortcutsShortcut">
<property name="visible">True</property>
<property name="title" translatable="yes" context="shortcut window">Play/Pause</property>
- <property name="accelerator"><Ctrl>space <Primary>P</property>
+ <property name="accelerator"><Ctrl>space</property>
</object>
</child>
<child>
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index d37a041..9f78ca9 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -377,9 +377,8 @@ class Window(Gtk.ApplicationWindow):
if (event.keyval == Gdk.KEY_f and
event_and_modifiers == Gdk.ModifierType.CONTROL_MASK):
self.toolbar.searchbar.toggle_bar()
- # Play / Pause on Ctrl + P
- if (event.keyval == Gdk.KEY_p
- or event.keyval == Gdk.KEY_space
+ # Play / Pause on Ctrl + SPACE
+ if (event.keyval == Gdk.KEY_space
and event_and_modifiers == Gdk.ModifierType.CONTROL_MASK):
self.player.play_pause()
# Play previous on Ctrl + B
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]