Open Gardengul opened 3 weeks ago
What would be the expected behaviour for the space bar in this case?
The space bar button shows the answer and if the answer is already shown, responds to the card as good.
If you want the spacebar to act like the Enter key you can substitute the following expression on the front of a card
ev.key === 'Enter'
with this:
(ev.key === 'Enter' || ev.key === ' ')
I won't make this change in the general template, as I have a different use for a space button for the future versions in mind, and it is not a behaviour people would expect from a Memrise template anyway.
I meant that the space bar does not work with all note types, not just with Memrise (Long) Preset [...] v3.32
Thats right. But any shortcut used by Anki itself becomes inaccessible from card scripts. So there are basically only two ways around it:
from . import Clear_Shortcuts
in the __init__.py
file in the add-on folder. (this will also revert the functionality of pressing Enter on the memrise cards to the basic Anki behavior)
I thought it was a bug. But if this is not the case, then everything is fine. It would be good to access disabling/enabling this feature via config.
Anki 24.06.2 (33a92379) (ao) Python 3.9.18 Qt 6.6.2 PyQt 6.6.1 Platform: Windows-10-10.0.19045
When you turn on the addon Memrise Cards [Lt], the space bar does not work during the review.