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

Can I call by key code? Because I don't know the specific key name #58

Open
xiaoxiaohuayu opened this issue Nov 27, 2024 · 0 comments
Open

Comments

@xiaoxiaohuayu
Copy link

Is your feature request related to a problem? Please describe.
My program can only use the keyboard, but my keyboard is customized, only code does not have a specific key name, for example, the key code is 9999

Describe the solution you'd like
Go through the code to make the call

  keystrokes.bindKey(9999,()=>{
    console.log('9999')
  })

Describe alternatives you've considered
Right now I don't have a good alternative.
Although it is possible to alias by setGlobalKeystrokesOptions, it is still based on the key name.

setGlobalKeystrokesOptions({
  keyRemap: {
    '9999':'spacebar'
  }
})

Additional context

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

1 participant