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
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):