Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default shortcut conflict with anki built-in ones #1

Open
ijgnd opened this issue Feb 16, 2023 · 3 comments
Open

default shortcut conflict with anki built-in ones #1

ijgnd opened this issue Feb 16, 2023 · 3 comments

Comments

@ijgnd
Copy link

ijgnd commented Feb 16, 2023

"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

  • Thanks for publishing this add-on as a reference. I will carefully study it. This looks very useful for me, e.g. for my note linking add-on.
@kleinerpirat
Copy link
Owner

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

@kleinerpirat
Copy link
Owner

Fixed with b9aef64.

@kleinerpirat
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants