[dconf-editor] Alternative code.



commit e1335b6331199c36b8adfbca13285c0dc2a7ff25
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue Feb 16 01:06:13 2016 +0100

    Alternative code.

 editor/dconf-window.vala |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/editor/dconf-window.vala b/editor/dconf-window.vala
index b8e3c5b..df676bb 100644
--- a/editor/dconf-window.vala
+++ b/editor/dconf-window.vala
@@ -309,12 +309,10 @@ class DConfWindow : ApplicationWindow
                     ((ConfigurationEditor) get_application ()).copy (current_path);
                     return true;
                 case "F1":
-                    if ((event.state & Gdk.ModifierType.SHIFT_MASK) != 0)
-                    {
-                        ((ConfigurationEditor) get_application ()).about_cb ();
-                        return true;
-                    }
-                    return false;
+                    if ((event.state & Gdk.ModifierType.SHIFT_MASK) == 0)
+                        return false;   // help overlay
+                    ((ConfigurationEditor) get_application ()).about_cb ();
+                    return true;
                 default:
                     break;  // TODO report bug for making <ctrl>v work?
             }


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