[shotwell] Slideshow: Block down key from focusing the toolbar



commit 4d578003c74666e24c4637f386982ad65a0d3b1d
Author: Jens Georg <mail jensge org>
Date:   Wed Apr 10 10:19:18 2019 +0200

    Slideshow: Block down key from focusing the toolbar
    
    Fixes #122

 src/SlideshowPage.vala | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/SlideshowPage.vala b/src/SlideshowPage.vala
index da1306cc..98102361 100644
--- a/src/SlideshowPage.vala
+++ b/src/SlideshowPage.vala
@@ -340,6 +340,12 @@ class SlideshowPage : SinglePhotoPage {
     public override bool key_press_event(Gdk.EventKey event) {
         bool handled = true;
         switch (Gdk.keyval_name(event.keyval)) {
+            // Block activating the toolbar on key down
+            // FIXME: Why is SinglePhotoPage not a PhotoPage which already does this?
+            case "Down":
+            case "KP_Down":
+                ;
+            break;
             case "space":
                 on_play_pause();
             break;


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