summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-02-15 15:01:54 +0100
committerBastien Nocera <hadess@hadess.net>2022-02-17 11:42:03 +0100
commit68f692ec2557da1cba48bdbeb3e558f53a686b81 (patch)
tree0eebc37a8cf4543a606a71cd0362f87cf6042ee0
parent6a573e3517dac0cfb2a1ffac82a0ced63840239c (diff)
downloadtotem-68f692ec2557da1cba48bdbeb3e558f53a686b81.tar.gz
main: Add 'K' as a shortcut for Play/Pause
As used on YouTube: https://support.google.com/youtube/answer/7631406?hl=en
-rw-r--r--data/shortcuts.ui2
-rw-r--r--src/totem-object.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/data/shortcuts.ui b/data/shortcuts.ui
index 7fc84fd90..03022ced1 100644
--- a/data/shortcuts.ui
+++ b/data/shortcuts.ui
@@ -106,7 +106,7 @@
<child>
<object class="GtkShortcutsShortcut" id="play-pause">
<property name="visible">1</property>
- <property name="accelerator">P &lt;ctrl&gt;space</property>
+ <property name="accelerator">P K &lt;ctrl&gt;space</property>
<property name="title" translatable="yes" context="shortcut window">Play/Pause</property>
</object>
</child>
diff --git a/src/totem-object.c b/src/totem-object.c
index 5da970f69..03e3b0b66 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -3492,6 +3492,8 @@ totem_object_handle_key_press (TotemObject *totem, GdkEventKey *event)
case GDK_KEY_AudioPlay:
case GDK_KEY_p:
case GDK_KEY_P:
+ case GDK_KEY_k:
+ case GDK_KEY_K:
totem_object_play_pause (totem);
break;
case GDK_KEY_comma: