Fix #2092643 [Tab between book list cells is broken](https://bugs.launchpad.net/calibre/+bug/2092643)

This commit is contained in:
Kovid Goyal 2024-12-29 18:06:39 +05:30
parent d26a381a66
commit 4f17773c42
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1655,8 +1655,10 @@ class BooksView(QTableView): # {{{
index = self.moveCursor(move_by, Qt.KeyboardModifier.NoModifier)
if index.isValid():
def edit():
self.setCurrentIndex(index)
self.edit(index)
if index.isValid():
self.setCurrentIndex(index)
self.edit(index)
self._model.current_changed(index, None)
QTimer.singleShot(0, edit)
return ans