mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
parent
57f4d6588f
commit
e5cf649d6a
1 changed files with 0 additions and 8 deletions
|
@ -517,8 +517,6 @@ class Browser(QMainWindow):
|
|||
self.mw.progress.timer(10, self.sidebar.refresh, False)
|
||||
|
||||
def showSidebar(self) -> None:
|
||||
# workaround for PyQt focus bug
|
||||
self.editor.hideCompleters()
|
||||
self.sidebarDockWidget.setVisible(True)
|
||||
|
||||
def focusSidebar(self) -> None:
|
||||
|
@ -911,16 +909,10 @@ class Browser(QMainWindow):
|
|||
self.table.to_last_row()
|
||||
|
||||
def onFind(self) -> None:
|
||||
# workaround for PyQt focus bug
|
||||
self.editor.hideCompleters()
|
||||
|
||||
self.form.searchEdit.setFocus()
|
||||
self.form.searchEdit.lineEdit().selectAll()
|
||||
|
||||
def onNote(self) -> None:
|
||||
# workaround for PyQt focus bug
|
||||
self.editor.hideCompleters()
|
||||
|
||||
self.editor.web.setFocus()
|
||||
self.editor.loadNote(focusTo=0)
|
||||
|
||||
|
|
Loading…
Reference in a new issue