Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ArrowDown","ArrowUp","ArrowLeft","ArrowRight"等键位在注册时keycode是错误的 #458

Open
longtaipeng opened this issue Nov 6, 2023 · 1 comment

Comments

@longtaipeng
Copy link

我在使用 hotkeys 监听 "ArrowDown","ArrowUp","ArrowLeft","ArrowRight"等键位时存在无法监听的问题

如图:
截屏2023-11-06 14 04 47

"ArrowDown","ArrowUp"的keys都是65,我不知道这是否对于键位的keyCode,但这也许是导致无法监听的原因。

我的代码如下

hotKyes("ArrowDown", () => {
...
})

hotKyes("ArrowUp", () => {
...
})

这样写是否存在问题呢?望告知,非常感谢!!!

@MikeSpitz
Copy link

You need to use up, down, left, right

More info here:
#13
#311

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants