Allows the changing of shortcuts on the main page, the editor window, the review window, and the deck browser window
Usage
The way to change shortcuts here is to go to Tools > Add-ons > Custom Shortcuts and click Config to change each shortcut. The text above the change screen should say what each function does. This is also available on the GitHub page.
Key sequences are allowed by adding a "+" between individual keys, e.g. mapping Ctrl-H with "Ctrl+H".
Support for duplicated shortcuts on the reviewer window is available. Make sure to read the config.md on that carefully (text above the Config) to ensure proper use.
Support
If you have any issues with this tool or want support for more shortcuts, please report it on the GitHub issues page, as I cannot respond to messages here.
This should theoretically function with Anki 2.1, though there hasn't been extensive testing with edge cases or compatibility. Known points of interest are shown below:
Anki recently changed a few of its shortcuts, meaning that the most recent version of this is only guaranteed to be compatible with Anki 2.1.6+.
The special shortcut(s) are not originally part of Anki and so might not always function as expected.
Changelog
2023-11-01: Fixed version detection issue for 23.10 (Thanks abdnh!)
2022-09-14: Fixed "editor add card close window" shortcut
2022-06-29: Add shortcut "window_browser forget card" for forgetting a card
2022-05-09: Patch foreground colors and fix note type choosing
2022-04-15: Temporarily disable HTML editor customization for 2.1.50 until permanent fix is found
2022-04-05: Fix preview button for 2.1.50
2022-03-19: Add support for the 3 new flags added in 2.1.45
2022-03-13: Add support for multiple duplicate shortcuts
2022-02-10: Add support for indenting/unindenting fields as well as adding lists (In Anki 2.1.45+ for now)
2022-01-13: Add support for toggling stickiness of fields (In Anki 2.1.45+)
2021-12-05: Change main shortcut implementation to avoid issues with Qt6 (In Anki 2.1.50+)
2021-10-30: Add card info/previous card info shortcuts (2.1.45, 2.1.48) as well as the shortcut to close the add card dialog box (2.1.24)
2021-10-20: Make change note type compatible with 2.1.41+
2021-10-18: Fix browser preview shortcut (for 2.1.45+)
2021-09-27: Add support for sidebar buttons in 2.1.45
2021-07-07: Make HTML editor 2.1.45 compatible
2021-06-03: Patch out issue with 2.1.45 Alpha
2021-02-11/2021-02-13/2021-02-17: Make compatible with 2.1.41 beta2 in preparation for 2.1.41
2021-02-09: Update localization in newer Anki versions
2021-01-27: Make compatible with 2.1.39 beta in preparation for 2.1.39
2020-12-27: Add changing note type in editor and confirming card addition
2020-11-18: Patch issue with certain shortcuts in Anki 2.1.20+
2020-11-17: Refactor reviewer code for better addon compatibility
2020-09-02: Include support for the more options dropdown (for Anki 2.1.33+)
2020-08-19: Update reviewer duplicates with newer features
2020-07-27: Changed editor cloze shortcuts for better addon compatibility
2020-06-26: Added editor shortcut duplication
2020-03-10: Support for many custom pastes
2020-03-09: Support for 2.1.21 release
2020-03-08: Support for Saving/removing current filter, pausing/seeking audio
2020-03-03: Adding filters, 2.1.21 beta compatibility, disabling certain parts for addon compatibility
2020-02-16: Support for new style hooks
2019-11-28: Minor config description update
2019-11-18: Hidden error fixing
2019-10-04: Undid destructive changes hidden in previous updates
2019-07-25: Error fixing
2019-04-17: Backported to Anki 2.1.0rc2
2019-04-16: Changed default shortcuts to accurately reflect those of Anki 2.1.11
2019-04-09: Fixed an issue with custom paste and added a little more disambiguation to the config.md
2019-03-04/05: Fixed issues with Arrow Keys + Page Up/Down
2019-02-10: Change the main page highlight & editor toolbar to reflect changed keys
2018-12-22: Fixed compatibility issues with Anki 2.1.6+
2018-12-13: Fixed issues with cloze alt and (maybe) main shortcuts
2018-11-27: Added support for duplicate main toolbar shortcuts
2018-10-22: Added browser window customization
2018-09-28: Improved special function performance
2018-09-26: Added new special function & cleaned up documentation
2018-09-20: Fixed issues with certain special keys (Return, Enter, Tab, etc.)
2018-09-14: Added Shortcut Conflict Warnings
2018-09-06: Error fixing
2018-09-05: Added main toolbar customization and support for duplicate reviewer shortcuts
2018-09-04: Added reviewer customization
2018-08-30: Error fixing
2018-08-30: Initial Release