Type the album's title and use the "enter" keyboard key to submit the change
instead of being saved, the page is reloaded
Why?
The javascript code seems to listen to the click, keyup, keydown events and so, bypass all native browser functionnalities to handle possible input devices.
How to fix?
Use the submit event on the form and drop the click, keyup, keydown handler.
When a user click on the form submit button or use the enter key, the submit event is triggered on the form. With less code, you'll manage more devices with less code.
Reported by Gidzit in the forum: https://forum.cozy.io/t/bug-report-in-photo-keyboard-support-aka-kill-onclick-event/764
How to reproduce the bug?
Why?
The javascript code seems to listen to the click, keyup, keydown events and so, bypass all native browser functionnalities to handle possible input devices.
How to fix?
Use the submit event on the form and drop the click, keyup, keydown handler. When a user click on the form submit button or use the enter key, the submit event is triggered on the form. With less code, you'll manage more devices with less code.