I have a web site with four options. A friend mentioned that his old phone had no touch screen but did have a browser, and had a physical button on each of the four edges.
He asked, if I mapped the four keyboard arrows to the four website options, maybe his phone buttons would emulate them. Is this crazy? Can this be done in javascript? I realize it depends on the phone, but are there general rules?
Rather than map the arrows and disabling the default behavior the user expects, you could try add the mobile access key at your anchors.
Old phones with keyboard accept the attribute
accesskeyin anchors. This way, if they press the keyboard number related, it will be the same effect as clicking in the link. You could try this but of course, will not work with devices with no keyboard (touch ones mostly).Use is:
<a href="some url" accesskey="1">My link</a>– The number inaccesskeywill be the number to be pressed on keyboard.(PS.: Pending test on newer ones with keyboard to see if that tag is still supported).