From 8560efebeaece0c24fdabac309ef592ca3864620 Mon Sep 17 00:00:00 2001 From: hordepfo Date: Wed, 22 Jan 2014 03:20:56 +0000 Subject: [PATCH] Fixes search entry losing typing focus When the search entry was out of focus and types were redirected to it, if the current selected application was hidden by the filtering, both the holder and entry lost focus. This stopped the typing event redirection. Now the entry is always focused when typing. --- usr/lib/linuxmint/mintMenu/plugins/applications.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr/lib/linuxmint/mintMenu/plugins/applications.py b/usr/lib/linuxmint/mintMenu/plugins/applications.py index c41ebcf..9f5a0c1 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/applications.py +++ b/usr/lib/linuxmint/mintMenu/plugins/applications.py @@ -887,6 +887,8 @@ class pluginclass( object ): # Forward all text to the search box def keyPress( self, widget, event ): if event.string.strip() != "" or event.keyval == Gdk.KEY_BackSpace: + self.searchEntry.grab_focus() + gtk.gtk_editable_set_position(hash(self.searchEntry), -1) self.searchEntry.event( event ) return True