[gnome-calculator] Set default focus toentry (fixes #260)



commit 98659364d43aef787f46b5f967529c841ecd386b
Author: Robert Roth <robert roth off gmail com>
Date:   Sun Mar 6 08:08:26 2022 +0200

    Set default focus toentry (fixes #260)

 src/math-window.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/math-window.vala b/src/math-window.vala
index 5869e1e7..48385dd2 100644
--- a/src/math-window.vala
+++ b/src/math-window.vala
@@ -70,7 +70,6 @@ public class MathWindow : Adw.ApplicationWindow
 
         _display = new MathDisplay (equation);
         _display.show ();
-        _display.grabfocus ();
 
         _display.equation.display_changed.connect (history.set_serializer);
         _display.equation.history_signal.connect (this.update_history);
@@ -94,6 +93,7 @@ public class MathWindow : Adw.ApplicationWindow
         if (DEVELOPMENT_BUILD) {
             add_css_class ("devel");
         }
+        _display.grabfocus ();
 
     }
 


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