[totem/wip/hadess/track-lists] main: Add "V" keyboard shortcut to cycle through subtitles
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/track-lists] main: Add "V" keyboard shortcut to cycle through subtitles
- Date: Fri, 11 Feb 2022 16:48:20 +0000 (UTC)
commit 1c9c7f490589dfd724af67a4f503c001216bc8a9
Author: Bastien Nocera <hadess hadess net>
Date: Thu Feb 10 15:55:27 2022 +0100
main: Add "V" keyboard shortcut to cycle through subtitles
data/shortcuts.ui | 7 +++++++
src/totem-object.c | 2 ++
2 files changed, 9 insertions(+)
---
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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]