diff --git a/qt/aqt/__init__.py b/qt/aqt/__init__.py index eabdb9823..e2b1926d0 100644 --- a/qt/aqt/__init__.py +++ b/qt/aqt/__init__.py @@ -523,12 +523,10 @@ def _run(argv: Optional[list[str]] = None, exec: bool = True) -> Optional[AnkiAp if os.environ.get("ANKI_SOFTWAREOPENGL"): QCoreApplication.setAttribute(Qt.ApplicationAttribute.AA_UseSoftwareOpenGL) - if ( - is_win - and qtmajor == 5 - and (qtminor == 14 or (qtminor == 15 and qtpoint == 0)) - and "QT_QPA_PLATFORM" not in os.environ - ): + # fix an issue on Windows, where Ctrl+Alt shortcuts are triggered by AltGr, + # preventing users from typing things like "@" through AltGr+Q on a German + # keyboard. + if is_win and "QT_QPA_PLATFORM" not in os.environ: os.environ["QT_QPA_PLATFORM"] = "windows:altgr" # create the app diff --git a/qt/aqt/forms/browser.ui b/qt/aqt/forms/browser.ui index 9a156528a..18e1370a2 100644 --- a/qt/aqt/forms/browser.ui +++ b/qt/aqt/forms/browser.ui @@ -666,6 +666,9 @@ actions_create_copy + + Ctrl+Alt+E +