Fix field focus lost when pressing alt in the editor (#3378)

This commit is contained in:
Abdo 2024-08-29 13:32:24 +03:00 committed by GitHub
parent 0f44796b36
commit 40bcbe44bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -58,6 +58,7 @@ class AddCards(QMainWindow):
gui_hooks.operation_did_execute.append(self.on_operation_did_execute)
restoreGeom(self, "add")
gui_hooks.add_cards_did_init(self)
self.setMenuBar(None)
self.show()
def set_note(self, note: Note, deck_id: DeckId | None = None) -> None:

View file

@ -21,6 +21,7 @@ class EditCurrent(QMainWindow):
self.setWindowTitle(tr.editing_edit_current())
self.setMinimumHeight(400)
self.setMinimumWidth(250)
self.setMenuBar(None)
self.editor = aqt.editor.Editor(
self.mw,
self.form.fieldsArea,