From da0cb9b2acdd1718e404dce65e1f8cba4b9538f2 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 23 Apr 2021 11:13:23 -0400 Subject: [PATCH] Call search focus directly --- piker/ui/_interaction.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/piker/ui/_interaction.py b/piker/ui/_interaction.py index 4c32e961..4a9771e4 100644 --- a/piker/ui/_interaction.py +++ b/piker/ui/_interaction.py @@ -762,8 +762,7 @@ class ChartView(ViewBox): # ctlr-k if key == QtCore.Qt.Key_K and ctrl: search = self._chart._lc.chart_space.search - search.show() - search.setFocus() + search.focus() # esc if key == QtCore.Qt.Key_Escape or (ctrl and key == QtCore.Qt.Key_C):