Call search focus directly

symbol_search
Tyler Goodlet 2021-04-23 11:13:23 -04:00
parent 0e83906f11
commit da0cb9b2ac
1 changed files with 1 additions and 2 deletions

View File

@ -762,8 +762,7 @@ class ChartView(ViewBox):
# ctlr-k # ctlr-k
if key == QtCore.Qt.Key_K and ctrl: if key == QtCore.Qt.Key_K and ctrl:
search = self._chart._lc.chart_space.search search = self._chart._lc.chart_space.search
search.show() search.focus()
search.setFocus()
# esc # esc
if key == QtCore.Qt.Key_Escape or (ctrl and key == QtCore.Qt.Key_C): if key == QtCore.Qt.Key_Escape or (ctrl and key == QtCore.Qt.Key_C):