Set the focus to the table whenever it is rebuilt. Saves a lot of tabbing.

This commit is contained in:
Charles Haley 2023-11-05 17:32:40 +00:00 committed by Kovid Goyal
parent 1474957e99
commit 07ceef1927
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 0 deletions

View File

@ -326,6 +326,7 @@ class EditAuthorsDialog(QDialog, Ui_EditAuthorsDialog):
self.find_box.setFocus()
self.start_find_pos = -1
self.table.blockSignals(False)
self.table.setFocus(Qt.FocusReason.OtherFocusReason)
def row_height_changed(self, row, old, new):
self.table.verticalHeader().blockSignals(True)

View File

@ -779,6 +779,7 @@ class TagListEditor(QDialog, Ui_TagListEditor):
self.table.setCurrentCell(0, 0)
self.search_box.setFocus()
self.start_find_pos = -1
self.table.setFocus(Qt.FocusReason.OtherFocusReason)
def not_found_label_timer_event(self):
self.not_found_label.setVisible(False)