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

怎么监听同时按下的键?我想录制快捷键。 #436

Closed
Jarvie789 opened this issue Jul 9, 2023 · 2 comments
Closed

怎么监听同时按下的键?我想录制快捷键。 #436

Jarvie789 opened this issue Jul 9, 2023 · 2 comments

Comments

@Jarvie789
Copy link

如题

@jaywcjlove
Copy link
Owner

image

@Jarvie789 回调函数返回一个记录,可以使用 hotkeysEvent.keys, 需要更新到 v3.11.0,

hotkeys('*', (evn, hotkeysEvent) => {
  console.log('heven', hotkeysEvent);
  console.log('keys', hotkeysEvent.keys);
})

@Jarvie789
Copy link
Author

image @Jarvie789 回调函数返回一个记录,可以使用 `hotkeysEvent.keys`, 需要更新到 `v3.11.0`,
hotkeys('*', (evn, hotkeysEvent) => {
  console.log('heven', hotkeysEvent);
  console.log('keys', hotkeysEvent.keys);
})

感谢老哥!

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