From 4bd7c4e41d87c3b0620aa2dba2ab06aab17f2e60 Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Tue, 28 Nov 2023 12:20:26 +0000 Subject: [PATCH] Reorder focus chain in the replace page Fixes #53 --- usr/lib/bulky/bulky.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/usr/lib/bulky/bulky.py b/usr/lib/bulky/bulky.py index ae5781c..5e01644 100755 --- a/usr/lib/bulky/bulky.py +++ b/usr/lib/bulky/bulky.py @@ -312,6 +312,11 @@ def __init__(self, application): self.replace_regex_check.connect("toggled", self.on_widget_change) self.replace_case_check.connect("toggled", self.on_widget_change) + # Set focus chain + # Not that this is deprecated (but not implemented differently) in Gtk3. + # If we move to GTK4, we'll just drop this line of code. + self.builder.get_object("grid_replace").set_focus_chain([self.find_entry, self.replace_entry, self.replace_regex_check, self.replace_case_check]) + # Remove widgets self.remove_from_spin = self.builder.get_object("remove_from_spin") self.remove_to_spin = self.builder.get_object("remove_to_spin")