-
Notifications
You must be signed in to change notification settings - Fork 184
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
Plugin keyboard shorcut keys do not work in Obsidian notes after reviewing flahscards [BUG] #907
Comments
I'm also experiencing this |
Hey @KyleKlus, this might be your area of expertise, would you have a chance to look into this? Cheers |
Yes, I found the problem and I'll try to fix it as quick as possible, as this is quite a bad one, if it locks the keys 🙄 |
Alright, I noticed, I already fixed the bug by accident in my UI overhaul in PR #899. As it is already approved by st3v3nmw and merge ready, it would be just easier to wait until it'll be merged. |
Merged #899, please try it out. |
The "s" and "space" key are still locked. The 1-3 keys work a few times and then locked as well. |
Alright, then I need to look deeper into what causes this, as I thought that it was fixed by removing the key listener after it isn't needed. I may also want to look into how other plugins do the key listeners, so that we could even make the keys reconfigureable in the hotkeys section. I'll try to fix this as soon as possible. |
I am very sorry, but I can't reproduce the bug. Everything works fine for me. And I've looked through the code, if there is a possibility that the remove event listener function isn't called, but as long as the modal closes, then the event handler is also removed. Can someone else but me recreate this? |
Just double checked after troubleshooting other plugins. Appears to be a good fix now. Thanks for the work on it! |
Describe the bug
After reviewing daily flashcards, the plugin designated shortcut keys, "1", "2", "3", "s", and "space" do not function in obsidian without restarting the app. No issues with keys in other apps.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Keys should still work in obsidian after reviewing flashcards.
Screenshots
If applicable, add screenshots to help explain the bug. This could be the logs in the developer console (
CTRL
+SHIFT
+i
).Versions (please complete the following information):
this.navigator.appVersion
on the developer console, e.g.5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) obsidian/0.12.3 Chrome/89.0.4389.128 Electron/12.0.6 Safari/537.36"
]Additional context
Add any other context about the problem here (e.g. the markdown producing the error).
The text was updated successfully, but these errors were encountered: