kleinerpirat / anki-tooltips

Add tooltips to your Anki cards with Tippy.js
GNU Affero General Public License v3.0
10 stars 0 forks source link

default shortcut conflict with anki built-in ones #1

Open ijgnd opened 1 year ago

ijgnd commented 1 year ago

"Ctrl+T, ..." is used is used for insertig mathjax or latex blocks. Your shortcut Ctrl+T doesn't seem to block/override the built in ones. In the latest version (git commit d9f1e2264) and 2.1.55 the following happens:

Ctrl+T opens your tooltip window, but then I can't directly write words starting with T or M, typing the letter "t" is then transformed to "[latex][/latex]" and the cursor is in the middle of the latex block. I have to manually delete this. (Or did I really miss that you can now remap Anki default shortcuts?)

That's strange.

 

PS

kleinerpirat commented 1 year ago

Yep, I noticed that too. Overriding the shortcut from editor.py should fix this.

kleinerpirat commented 1 year ago

Fixed with https://github.com/kleinerpirat/anki-tooltips/commit/b9aef64734a12c93e5e8a3d735f89f5c4d0db719.

kleinerpirat commented 1 year ago

I was too quick to close this. If I override the shortcut with an empty function, then the empty function will block the tooltips instead of the native one, but we're in the same situation.