From 40bcbe44bf1d3f0de14ed1c508105ad4be748b6c Mon Sep 17 00:00:00 2001 From: Abdo Date: Thu, 29 Aug 2024 13:32:24 +0300 Subject: [PATCH] Fix field focus lost when pressing alt in the editor (#3378) --- qt/aqt/addcards.py | 1 + qt/aqt/editcurrent.py | 1 + 2 files changed, 2 insertions(+) diff --git a/qt/aqt/addcards.py b/qt/aqt/addcards.py index a8f4f18bb..cb2e4609c 100644 --- a/qt/aqt/addcards.py +++ b/qt/aqt/addcards.py @@ -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: diff --git a/qt/aqt/editcurrent.py b/qt/aqt/editcurrent.py index 744bce949..9befcdeac 100644 --- a/qt/aqt/editcurrent.py +++ b/qt/aqt/editcurrent.py @@ -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,