Open longtaipeng opened 11 months ago
我在使用 hotkeys 监听 "ArrowDown","ArrowUp","ArrowLeft","ArrowRight"等键位时存在无法监听的问题
如图:
"ArrowDown","ArrowUp"的keys都是65,我不知道这是否对于键位的keyCode,但这也许是导致无法监听的原因。
我的代码如下
hotKyes("ArrowDown", () => { ... }) hotKyes("ArrowUp", () => { ... })
这样写是否存在问题呢?望告知,非常感谢!!!
You need to use up, down, left, right
up
down
left
right
More info here: https://github.com/jaywcjlove/hotkeys-js/issues/13 https://github.com/jaywcjlove/hotkeys-js/issues/311
我在使用 hotkeys 监听 "ArrowDown","ArrowUp","ArrowLeft","ArrowRight"等键位时存在无法监听的问题
如图:
"ArrowDown","ArrowUp"的keys都是65,我不知道这是否对于键位的keyCode,但这也许是导致无法监听的原因。
我的代码如下
这样写是否存在问题呢?望告知,非常感谢!!!