Anki add-on: Disable Keyboard Shortcuts in Review

Removes custom global keyboard shortcuts (hotkeys) in main window, review and overview. The shortcuts need to be configured in Tools > Add-ons > Config, by default nothing is disabled. The extension is very simple and dumb, it just disables the default shortcuts for the main widnow and prevents new ones being attached to it when review or overview is open. I created it to be able to type Ctrl+Alt+E for ę and Ctrl+Alt+N for ń in my polish close caption notes. Disabling "Enter" requires both Qt.Key_Enter and Qt.Key_Return Disabling Space requires the "space" character — " " I could try to fix/extend/change it if someone needs anything added, but I don't think removing shortcuts completely is within my abilities, since they are attached to specific inputs and it would probably require a lot of monkey patching to change. For macOS users, Ctrl is ⌘, Alt is ⌥, and Meta is ^ (control key). Example configuration: { "disableHotkeys": [ "Ctrl+Alt+N", "Ctrl+Alt+E", "Qt.Key_Enter", "Qt.Key_Return", "A", "B", " ", ] }