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

Singular modifier specified as a string causes crash #40

Open
j-f1 opened this issue May 10, 2022 · 0 comments
Open

Singular modifier specified as a string causes crash #40

j-f1 opened this issue May 10, 2022 · 0 comments

Comments

@j-f1
Copy link

j-f1 commented May 10, 2022

Example: https://ke-complex-modifications.pqrs.org/#command_q

This modification contains this JSON:

{
  // ...
  "to": [
    {
      "key_code": "q",
      "modifiers": "left_command"
    }
  ]
  // ...
}

…and the parseKeys function in MainForm.tsx expects an array:

const parseKeys = (modifiers: any[]) => {
return modifiers.map(parseKey);
};

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
@j-f1 and others