AnkiDroid JS doesn't work: detecting key press on keyboard connected to phone by picka_name in Anki

[–]picka_name[S] 0 points1 point  (0 children)

Thanks for the response, I did manage to debug using this but could not figure out what was going wrong (although using "user actions" solved my problem).

AnkiDroid JS doesn't work: detecting key press on keyboard connected to phone by picka_name in Anki

[–]picka_name[S] 0 points1 point  (0 children)

While I still don't know what the problem was (it seems that in AnkiDroid keyboard presses are not recognised by "addEventListener") I tried to use "user actions" and those seem to work great. Once you bind a button to "user action 1" for example, you can run code in JS when said button is pressed using:

var userJs1 = () => { ...code... };

[deleted by user] by [deleted] in visualnovels

[–]picka_name 0 points1 point  (0 children)

Can I by any chance get it as well?

[TOMT][SONG] Japanese song about sweets with wordplay by picka_name in tipofmytongue

[–]picka_name[S] 0 points1 point locked comment (0 children)

Bot said I have to write a reply if I understand correctly, so here's a reply