From f9325f28709862d516cc375d0f902bd73b9d476e Mon Sep 17 00:00:00 2001 From: Jesper Date: Thu, 13 Jun 2024 08:12:41 +0200 Subject: [PATCH] Bring back scrollintoview --- usr/lib/linuxmint/mintMenu/plugins/applications.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/lib/linuxmint/mintMenu/plugins/applications.py b/usr/lib/linuxmint/mintMenu/plugins/applications.py index 3376d21..b26a15c 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/applications.py +++ b/usr/lib/linuxmint/mintMenu/plugins/applications.py @@ -588,6 +588,7 @@ class pluginclass(object): return False def focusSearchEntry(self, clear = True): + self.applicationsBox.get_children()[0].grab_focus() # grab_focus() does select all text, # restoring the original selection is somehow broken, so just select the end # of the existing text, that's the most likely candidate anyhow @@ -1688,7 +1689,7 @@ class pluginclass(object): if item["button"].appExec: self.mintMenuWin.setTooltip(item["button"], item["button"].getTooltip()) item["button"].connect("button-press-event", self.menuPopup) - # item["button"].connect("focus-in-event", self.scrollItemIntoView) + item["button"].connect("focus-in-event", self.scrollItemIntoView) item["button"].connect("clicked", RecentHelper.applicationButtonClicked) if self.activeFilter[0] == 0: item["button"].filterText(self.activeFilter[1])