WBOY
Release: 2016-06-24 12:13:25
Original
1582 people have browsed it

I want to set a "->" (right arrow) shortcut key in
Which value represents "->" (right arrow)?

For example: accessKey="s" means the shortcut key is "s"

Then: accessKey="???" How to indicate that the shortcut key is "->" (right arrow )Woolen cloth? ? ? ? ? ? ? ?


Reply to discussion (solution)

The value of accesskey can only be letters and numbers

The value of accesskey can only be letters and numbers Number
Is there any other way to set the shortcut key to "->" right arrow?

You can use js to get the keyCode to determine whether it is the right arrow key

document.onkeydown = function(e){    var e = e || event;    if(e.keyCode == 39){        alert("你按了右方向键!")    }}
Copy after login

You can use js to get the keyCode to determine whether it is the right arrow key
JScript code
document.onkeydown = function(e){
var e = e || event;
if(e.keyCode == 39){
alert("You pressed the right arrow key!")
}
}
In this case, the focus must be in the current form. If one of my pages is divided into 2 jsps, it will not work if the focus is on the other jsp.
Hey. . What should I do? 5555555555555555555555

Does anyone know of any other methods?

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template