sample-vanilla icon indicating copy to clipboard operation
sample-vanilla copied to clipboard

Softkeys doesn't work

Open DinoMah opened this issue 5 years ago • 3 comments

Doing this project manually I found that softkeys and D-Pad doesn't respond to the actions on a physical device.

DinoMah avatar Dec 15 '20 23:12 DinoMah

I discovered something. Removing the type="module" from the import line <script type="module" src="./src/index.js"><script/> Keys now work but I'm unable to import modules from other javascript files. The only workaround that I found is importing scripts from html and then using them in the html script section

DinoMah avatar Dec 16 '20 17:12 DinoMah

Same problem here. Could you give some more details on your solution? Thanks!

manduchi avatar Jul 27 '21 18:07 manduchi

Oh, so much time since I did that tutorial, but what simply means is that in the script tag you have to delete the type='module' option but you can't use other scripts, I recommend using a framework because they use webpack and you don't have problems with importing modules, other option is copy-pasting all the code on index.js but I don't recommend it

DinoMah avatar Jul 29 '21 00:07 DinoMah