Liresol / anki-custom-shortcuts

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

2.1.50, editor: ctrl+shift+x does not work to open the html source view #161

Open ijgnd opened 2 years ago

ijgnd commented 2 years ago

I tested with Anki 2.1.50 (downloaded from ankiweb) in linux and just the add-on "Customize Keyboard Shortcuts" (that I installed today). Then the shortcut "ctrl+shift+x" to show the html source view of a field in the editor does no longer work.

I ran anki from the console and on pressing "ctrl+shift+x" this message is printed:

JS error /_anki/legacyPageData?id=140235931578720:1 Uncaught ReferenceError: getCurrentField is not defined

Thanks for sharing and maintaining this great add-on. If you need additional info let me know.

AnKingMed commented 2 years ago

I'm also having this problem

Liresol commented 2 years ago

Hello, I'm going to disable customization for this shortcut for now in 2.1.50 since the underlying function has drastically changed in Anki and it will probably take a while to get it working again if it's still possible.

This will also mean that the built-in shortcut should work again.

Liresol commented 2 years ago

I've pushed out the stop-gap update, but I will be looking to have functionality restored for this shortcut.