[totem/wip/hadess/keyboard-shortcuts: 3/6] main: Add 'K' as a shortcut for Play/Pause
- From: Bastien Nocera <hadess src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [totem/wip/hadess/keyboard-shortcuts: 3/6] main: Add 'K' as a shortcut for Play/Pause
 
- Date: Thu, 17 Feb 2022 10:42:07 +0000 (UTC)
 
commit 68f692ec2557da1cba48bdbeb3e558f53a686b81
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Feb 15 15:01:54 2022 +0100
    main: Add 'K' as a shortcut for Play/Pause
    
    As used on YouTube:
    https://support.google.com/youtube/answer/7631406?hl=en
 data/shortcuts.ui  | 2 +-
 src/totem-object.c | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
---
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 <ctrl>space</property>
+                <property name="accelerator">P K <ctrl>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:
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]