summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-02-10 15:55:27 +0100
committerBastien Nocera <hadess@hadess.net>2022-02-11 18:33:04 +0100
commit6c451a8e0ba8e6c2060137336f8914c1fa04198b (patch)
tree566dfbdd3cbe16bf8242e598e433babbd43cd8cf
parentf19e60ad01aeeb4dcdee687fa2f008ae477a7f5a (diff)
downloadtotem-6c451a8e0ba8e6c2060137336f8914c1fa04198b.tar.gz
main: Add "V" keyboard shortcut to cycle through subtitles
-rw-r--r--data/shortcuts.ui7
-rw-r--r--src/totem-object.c2
2 files changed, 9 insertions, 0 deletions
diff --git a/data/shortcuts.ui b/data/shortcuts.ui
index 689e5ae3d..dfad70605 100644
--- a/data/shortcuts.ui
+++ b/data/shortcuts.ui
@@ -142,6 +142,13 @@
<property name="title" translatable="yes" context="shortcut window">Next video or chapter</property>
</object>
</child>
+ <child>
+ <object class="GtkShortcutsShortcut" id="cycle-subtitle">
+ <property name="visible">1</property>
+ <property name="accelerator">V</property>
+ <property name="title" translatable="yes" context="shortcut window">Select next Subtitle</property>
+ </object>
+ </child>
</object>
</child>
<child>
diff --git a/src/totem-object.c b/src/totem-object.c
index fc5855447..c242baf06 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -3519,6 +3519,8 @@ totem_object_handle_key_press (TotemObject *totem, GdkEventKey *event)
totem_object_set_zoom (totem, TRUE);
break;
case GDK_KEY_Subtitle:
+ case GDK_KEY_V:
+ case GDK_KEY_v:
bacon_video_widget_set_next_subtitle (totem->bvw);
break;
case GDK_KEY_t: