Fixed auto highlighting all off search entery

This commit is contained in:
itdominator 2021-12-10 22:39:30 -06:00
parent b651cde967
commit 1eb6c81f6a
1 changed files with 2 additions and 1 deletions

View File

@ -57,9 +57,10 @@ class WidgetFileActionMixin:
def popup_search_files(self, wid, keyname): def popup_search_files(self, wid, keyname):
entry = self.builder.get_object(f"win{wid}_search_field") entry = self.builder.get_object(f"win{wid}_search_field")
self.builder.get_object(f"win{wid}_search").popup()
entry.set_text(keyname) entry.set_text(keyname)
entry.grab_focus_without_selecting() entry.grab_focus_without_selecting()
self.builder.get_object(f"win{wid}_search").popup() entry.set_position(-1)
def do_file_search(self, widget, eve=None): def do_file_search(self, widget, eve=None):
query = widget.get_text() query = widget.get_text()