karabiner-complex-rules-generator icon indicating copy to clipboard operation
karabiner-complex-rules-generator copied to clipboard

Singular modifier specified as a string causes crash

Open j-f1 opened this issue 3 years ago • 0 comments

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:

https://github.com/genesy/karabiner-complex-rules-generator/blob/90cbbd1ae1db80bdf06910a2e1da587aada9aab7/src/components/MainForm.tsx#L85-L87

j-f1 avatar May 10 '22 19:05 j-f1