RobertWHurst / Keystrokes

Keystrokes as an easy to use library for binding functions to keys and key combos. It can be used with any TypeScript or JavaScript project, even in non-browser environments.
MIT License
158 stars 6 forks source link

Ctrl No!! ctrl 键不起作用 #52

Closed ALNY-AC closed 2 months ago

ALNY-AC commented 2 months ago

image image

注册 ctrl 键不起作用,其他的按键可以。即使是直接复制Readme中的案例,ctrl 也不起作用

ALNY-AC commented 2 months ago

我确信我键盘上的的ctrl键是好的,这句话就是我复制过来的 CTRL+C:我确信我键盘上的的ctrl键是好的,这句话就是我复制过来的

zjz958182284 commented 2 months ago

@ALNY-AC @RobertWHurst Readme里的demo好像有一些错误,ctrl应该改成Control,因为这里的key取自https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_key_values#document_keys

RobertWHurst commented 2 months ago

I don't speak Chinese, but I translated your comments. Thank you @zjz958182284 for pointing out the typo. Indeed, I had ctrl in the readme because that's what it is in KeyboardJS, my previous binding library. Apologies to you both for the confusion. I've updated the readme. Thanks for letting me know :)