Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 Help me to create a simple html, With keyboard navigation

views
     
khanming
post May 25 2022, 10:50 PM

Getting Started
**
Validating
67 posts

Joined: Nov 2017
QUOTE(Skylinestar @ May 21 2022, 09:48 PM)
I want to use directional keys, not tab.
*
Hi, try this. But "event.which" does not support arrow key keycode, you use Numpad Up(8) and Down(2) arrow key to scroll......

Please let me know what you think. biggrin.gif

This post has been edited by khanming: May 25 2022, 10:57 PM


Attached File(s)
Attached File  index_v0.03.zip ( 458bytes ) Number of downloads: 3
khanming
post May 25 2022, 10:52 PM

Getting Started
**
Validating
67 posts

Joined: Nov 2017
Since I can't paste the code in Lowyat.Net (it block me), I capture the screen shot instead.

user posted image

This post has been edited by khanming: May 25 2022, 10:58 PM
khanming
post May 25 2022, 11:02 PM

Getting Started
**
Validating
67 posts

Joined: Nov 2017
QUOTE(Skylinestar @ May 21 2022, 09:48 PM)
I want to use directional keys, not tab.
*
I fixed it after referring to StackOverflow.

Have to use "onkeydown" not "onkeypress" to detect arrow key.

Done! cool2.gif


Attached File(s)
Attached File  index_v0.04.zip ( 458bytes ) Number of downloads: 5

 

Change to:
| Lo-Fi Version
0.0163sec    1.79    7 queries    GZIP Disabled
Time is now: 23rd December 2025 - 06:06 AM