[four-in-a-row/arnaudb/wip/gtk4: 86/92] Give focus to view after hint.




commit f0628ce74b98963f0f3dcb607c4b284003b8a388
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon Apr 27 19:59:07 2020 +0200

    Give focus to view after hint.

 src/four-in-a-row.vala | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/four-in-a-row.vala b/src/four-in-a-row.vala
index 1a55f9a..75e1dc6 100644
--- a/src/four-in-a-row.vala
+++ b/src/four-in-a-row.vala
@@ -923,6 +923,8 @@ private class FourInARow : Gtk.Application
             window.allow_undo (false);
         else
             window.allow_undo (true);
+
+        game_board_view.grab_focus ();
     }
 
     private inline void on_game_undo ()


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