Skip to content

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

Description

@xiaoxiaohuayu

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions