Keyboard shortcuts - ssricardo/anki-web-browser GitHub Wiki
Shortcuts
There are some standard shortcuts from Web browser. The main ones (to invoke the add-on) can be configured in the Config page.
All shortcuts are delegated to Anki, therefore they must follow the underline technology.
If you have questions or are having issues with configuring that, check-out some examples at:
https://doc.qt.io/qtcreator/creator-keyboard-shortcuts.html https://doc.qt.io/qtforpython-5/PySide2/QtWidgets/QShortcut.html
You can also ask AI. Example: "how to have a shortcut like ... on PyQt"?)
On the browser window
These shortcuts are applicable only in the Web-Browser window, and are currently fixed.
-
Open new tab = QShortcut(QtGui.QKeySequence("Ctrl+t"), self) -
Close tab = QShortcut(QtGui.QKeySequence("Ctrl+w"), self) -
Open other provider on same tab = QShortcut(QtGui.QKeySequence("Ctrl+p"), self) -
Open other provider(s) in new tab(s) = QShortcut(QtGui.QKeySequence("Ctrl+n"), self) -
goForward = QShortcut(QtGui.QKeySequence("Alt+right"), self) -
goBack = QShortcut(QtGui.QKeySequence("Alt+left"), self) -
previousTab = QShortcut(QtGui.QKeySequence("Ctrl+PgUp"), self) -
nextTab = QShortcut(QtGui.QKeySequence("Ctrl+PgDown"), self)