Commit 715d4824 authored by Yash Singh's avatar Yash Singh Committed by Marinus Schraal

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
parent 9ad0163f
......@@ -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">&lt;Ctrl&gt;space &lt;Primary&gt;P</property>
<property name="accelerator">&lt;Ctrl&gt;space</property>
</object>
</child>
<child>
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment