I have an input field for entering someone's name and would love to have it progress a timeline as people input letters.
I have keyboard presses working well with a physical keyboard entry using -
if (event.keyCode === 32) { // the SPACEBAR key
hypeDocument.triggerCustomBehaviorNamed('spacebar')
};
My problem is that on mobile and it's a screen keyboard this doesn't seem to work. I'm trying this on android particularly.
I'm not sure if there is a different set of keyboard codes for software keys or it will never work. Other thought is having it run a custom behaviour as the input box receives, um, input.
As I start trawling the sea of javascripts I thought I'd pose the question here first.