From 6511e5362e01ee0612d65c84e55372e124805501 Mon Sep 17 00:00:00 2001 From: dalthviz Date: Mon, 6 Nov 2017 14:52:52 -0500 Subject: [PATCH] Set focus for filter line when doing symbol search. --- spyder/widgets/fileswitcher.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spyder/widgets/fileswitcher.py b/spyder/widgets/fileswitcher.py index 49ae510e45a..cf136dcbbf4 100644 --- a/spyder/widgets/fileswitcher.py +++ b/spyder/widgets/fileswitcher.py @@ -760,6 +760,10 @@ def setup_symbol_list(self, filter_text, current_path): # To adjust the delegate layout for KDE themes self.list.files_list = False + # Select edit line when using symbol search initially. + # See issue 5661 + self.edit.setFocus() + # Move selected item in list accordingly # NOTE: Doing this is causing two problems: # 1. It makes the cursor to auto-jump to the last selected