[tomboy] Utils.cs: remove Esc accelerator binding in our dialogs



commit 572a596185c7cbd0303436609ae3668b563d9d55
Author: Alex Tereschenko <frozen and blue gmail com>
Date:   Mon Apr 10 21:04:33 2017 +0200

    Utils.cs: remove Esc accelerator binding in our dialogs
    
    All our dialogs had Escape key bound to the button designated as default
    during dialog creation.
    
    However that is:
    1) confusing to the user (e.g. Escape could return "Yes" for deletion
       confirmation, which is counter-intuitive);
    2) is not flexible - default answer could be and sometimes is redefined
       after creating the dialog in our code, but the accelerator stays the same,
       directly contradicting the new default.
    3) rather not bringing any value as keyboard-only management is
       perfectly possible even without that;
    
    So this is now removed. Closes #47.
    
    Signed-off-by: Alex Tereschenko <frozen and blue gmail com>

 Tomboy/Utils.cs |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/Tomboy/Utils.cs b/Tomboy/Utils.cs
index 6df1e0a..4552703 100644
--- a/Tomboy/Utils.cs
+++ b/Tomboy/Utils.cs
@@ -581,11 +581,6 @@ namespace Tomboy
 
                        if (is_default) {
                                DefaultResponse = response;
-                               button.AddAccelerator ("activate",
-                                                      accel_group,
-                                                      (uint) Gdk.Key.Escape,
-                                                      0,
-                                                      Gtk.AccelFlags.Visible);
                        }
                }
                


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