Liresol / anki-custom-shortcuts

Custom Keyboard Shortcuts for Anki 2.1
MIT License
60 stars 14 forks source link

Able to duplicate reviewer choice 1/2/3 but not reviewer choice 4 #184

Open jolo283 opened 2 years ago

jolo283 commented 2 years ago

Hi,

I seem to be running into an issue when I'm duplicating key assignments for the reviewer choice selection. I have added a duplicate shortcut for reviewer choice 1/2/3 and they work correctly, but reviewer choice 4 does not work.

Here is my Anki version info: Version ⁨2.1.53 (96bacf79)⁩ Python 3.9.7 Qt 5.15.2 PyQt 5.15.5

I've also attached my configs below.

Thank you!

{ "editor _duplicates": {}, "editor _extras": { "paste custom text": "" }, "editor _pastes": {}, "editor add card close window": "", "editor add media": "F3", "editor block indent": "", "editor block outdent": "", "editor bold": "Ctrl+B", "editor card layout": "Ctrl+L", "editor change col": "F8", "editor change deck": "", "editor change note type": "Ctrl+N", "editor cloze": "Ctrl+Shift+C", "editor cloze alt": "Ctrl+Shift+Alt+C", "editor cloze forced increment": "", "editor cloze no increment": "", "editor confirm add card": "Ctrl+Return", "editor focus tags": "Ctrl+Shift+T", "editor foreground": "F7", "editor html edit": "Ctrl+Shift+X", "editor insert latex": "Ctrl+T, T", "editor insert latex equation": "Ctrl+T, E", "editor insert latex math environment": "Ctrl+T, M", "editor insert mathjax block": "Ctrl+M, E", "editor insert mathjax chemistry": "Ctrl+M, C", "editor insert mathjax inline": "Ctrl+M, M", "editor italic": "Ctrl+I", "editor list insert ordered": "", "editor list insert unordered": "", "editor record sound": "F5", "editor remove format": "Ctrl+R", "editor subscript": "Ctrl+=", "editor superscript": "Ctrl++", "editor toggle sticky all": "Shift+F9", "editor toggle sticky current": "F9", "editor underline": "Ctrl+U", "m_toolbox _duplicates": {}, "m_toolbox addons": "Ctrl+Shift+A", "m_toolbox create filtered deck": "F", "m_toolbox export": "Ctrl+E", "m_toolbox import": "Ctrl+Shift+I", "m_toolbox preferences": "Ctrl+P", "m_toolbox quit": "Ctrl+Q", "m_toolbox see documentation": "F1", "m_toolbox study": "/", "m_toolbox switch profile": "Ctrl+Shift+P", "m_toolbox undo": "Ctrl+Z", "main add": "A", "main browse": "B", "main debug": "Ctrl+:", "main deckbrowser": "D", "main stats": "T", "main study": "S", "main sync": "Y", "reviewer _duplicates": { "reviewer choice 1+++ gamepad1": "I", "reviewer choice 2+++ gamepad2": "H", "reviewer choice 3+++ gamepad3": "J", "reviewer choice 4+++ gamepad4": "G", "reviewer flip card 3+++ gpflip": "M" }, "reviewer bury card": "-", "reviewer bury note": "=", "reviewer card info": "N", "reviewer choice 1": "1", "reviewer choice 2": "2", "reviewer choice 3": "3", "reviewer choice 4": "4", "reviewer delete note": "Ctrl+Delete", "reviewer edit current": "E", "reviewer flip card 1": " ", "reviewer flip card 2": "Qt.Key_Return", "reviewer flip card 3": "Qt.Key_Enter", "reviewer mark card": "*", "reviewer more options": "P", "reviewer options menu": "o", "reviewer pause audio": "5", "reviewer play recorded voice": "v", "reviewer previous card info": "Alt+I", "reviewer record voice": "Shift+v", "reviewer replay audio 1": "r", "reviewer replay audio 2": "F5", "reviewer seek backward": "6", "reviewer seek forward": "7", "reviewer set due date": "Ctrl+Shift+D", "reviewer set flag 0": "Ctrl+0", "reviewer set flag 1": "Ctrl+1", "reviewer set flag 2": "Ctrl+2", "reviewer set flag 3": "Ctrl+3", "reviewer set flag 4": "Ctrl+4", "reviewer set flag 5": "Ctrl+5", "reviewer set flag 6": "Ctrl+6", "reviewer set flag 7": "Ctrl+7", "reviewer suspend card": "@", "reviewer suspend note": "!", "window_browser _filters": { "_concat": {}, "_orConcat": {} }, "window_browser add note": "Ctrl+E", "window_browser add tag": "Ctrl+Shift+A", "window_browser change deck": "Ctrl+D", "window_browser change note type": "Ctrl+Shift+M", "window_browser clear unused tags": "", "window_browser close": "Ctrl+W", "window_browser delete": "Ctrl+Del", "window_browser filter": "Ctrl+Shift+F", "window_browser find": "Ctrl+F", "window_browser find and replace": "Ctrl+Alt+F", "window_browser find duplicates": "", "window_browser first card": "Home", "window_browser flag_blue": "Ctrl+4", "window_browser flag_green": "Ctrl+3", "window_browser flag_orange": "Ctrl+2", "window_browser flag_red": "Ctrl+1", "window_browser forget card": "Ctrl+Alt+N", "window_browser goto card list": "Ctrl+Shift+L", "window_browser goto next note": "Ctrl+N", "window_browser goto note": "Ctrl+Shift+N", "window_browser goto previous note": "Ctrl+P", "window_browser goto sidebar": "Ctrl+Shift+R", "window_browser guide": "F1", "window_browser info": "Ctrl+Shift+I", "window_browser invert selection": "Ctrl+Alt+S", "window_browser last card": "End", "window_browser manage note types": "", "window_browser preview": "Ctrl+Shift+P", "window_browser remove current filter": "", "window_browser remove tag": "Ctrl+Alt+Shift+A", "window_browser reposition": "Ctrl+Shift+S", "window_browser reschedule": "Ctrl+Shift+D", "window_browser save current filter": "", "window_browser select all": "Ctrl+Alt+A", "window_browser select notes": "", "window_browser sidebar search": "Alt+1", "window_browser sidebar select": "Alt+2", "window_browser suspend": "Ctrl+J", "window_browser toggle mark": "Ctrl+K", "window_browser undo": "Ctrl+Alt+Z", "Ω custom paste end style": "n", "Ω custom paste extra texts": {}, "Ω custom paste text": "", "Ω enable conflict warning": "y", "Ω enable editor": "y", "Ω enable m_toolbox": "y", "Ω enable main": "y", "Ω enable reviewer": "y", "Ω enable window_browser": "y" }

Liresol commented 2 years ago

Hello, Sorry for the delay. Generally when a shortcut doesn't work it means that that exact key sequence is used somewhere else for some reason. For some reason this config works when I try it, so it's possible there's another addon using "G" for something.

If you don't want to find it (or can't) could you try setting "reviewer choice 4+++ gamepad4" to other values to see if those work? If it doesn't work for anything, then that's definitely concerning and I will try to look into it further.

jolo283 commented 2 years ago

@Liresol - I just tried remapping the key to something else and that worked. I went through and disabled my addons, and it seems like there is a conflict with the "Image Occlusion Enhanced" addon.

Is there any workaround for this? The reason I'm asking is because I'm using a controller with Anki, and when I connect it to my PC in keyboard mode, one of the buttons remaps to "G", so I have to use that key.

Thanks!