mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
have to explicitly refocus field on next/prevcard
This commit is contained in:
parent
92696bf15e
commit
ebe313acf4
1 changed files with 4 additions and 0 deletions
|
|
@ -1257,12 +1257,16 @@ select fm.id, fm.name from fieldmodels fm""")
|
|||
tv.setCurrentIndex(idx)
|
||||
|
||||
def onPreviousCard(self):
|
||||
f = self.editor.currentField
|
||||
self._moveCur(QAbstractItemView.MoveUp)
|
||||
self.editor.web.setFocus()
|
||||
self.editor.web.eval("focusField(%d)" % f)
|
||||
|
||||
def onNextCard(self):
|
||||
f = self.editor.currentField
|
||||
self._moveCur(QAbstractItemView.MoveDown)
|
||||
self.editor.web.setFocus()
|
||||
self.editor.web.eval("focusField(%d)" % f)
|
||||
|
||||
def onFirstCard(self):
|
||||
sm = self.form.tableView.selectionModel()
|
||||
|
|
|
|||
Loading…
Reference in a new issue