[totem/wip/hadess/fix-shortcuts: 6/7] main: Fix Ctrl+Space shortcut not working




commit 51ee5b9fb8855b573e0cca39d6a110776634d6a1
Author: Bastien Nocera <hadess hadess net>
Date:   Sat Aug 22 01:19:24 2020 +0200

    main: Fix Ctrl+Space shortcut not working

 src/totem-object.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index 67e42d558..a0a2ef71e 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -3393,6 +3393,9 @@ totem_object_handle_key_press (TotemObject *totem, GdkEventKey *event)
                                }
                        } else
                                retval = FALSE;
+               } else {
+                       if (event->keyval == GDK_KEY_space)
+                               totem_object_play_pause (totem);
                }
                break;
        case GDK_KEY_Left:
@@ -3593,6 +3596,7 @@ window_key_press_event_cb (GtkWidget *win, GdkEventKey *event, TotemObject *tote
                case GDK_KEY_l:
                case GDK_KEY_q:
                case GDK_KEY_Q:
+               case GDK_KEY_space:
                case GDK_KEY_Right:
                case GDK_KEY_Left:
                case GDK_KEY_plus:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]