简体   繁体   中英

Is there a new HTML5 way to move between rows of inputs in a table using the arrow keys?

I've got a table filled with text input fields (input type=text). I have written some javascript code which catches the up and down arrow keys and detects if the active element is in a table, and if so it moves the active element up or down. This works fine under (for example) Firefox.

Today I was testing CSS on a different page (with no javascript) on the default browser that comes with android and I discovered that this feature already exists on that browser without the need for any javascript. So immediately now I wonder if there is something new in HTML5 that would allow me to achieve this functionality without using any javascript. No luck finding anything so far. Is this just something that the Android default browser implemented that is out in left field?

The behavior you're describing is unique to the Android browser. It's not part of HTML5, nor any other browser I'm familiar with.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM