glazewm icon indicating copy to clipboard operation
glazewm copied to clipboard

Show error message on invalid keybindings

Open kuznetsovvj opened this issue 2 years ago • 1 comments

A copy of the draft from the project to link the merge request.

For example, the following keybinding will silently throw the error Requested value '<CHARACTER>' was not found.

keybindings:
  - command: "focus left"
    binding: "Alt+;"

When validating the user config (ie. ValidateDeserializedConfig method in EvaluateUserConfigHandler.cs), check whether the binding can be cast to Keys enum and throw FatalUserException if it's invalid.

kuznetsovvj avatar Oct 28 '22 17:10 kuznetsovvj

I created pull request #157

kuznetsovvj avatar Oct 28 '22 17:10 kuznetsovvj

Done

kuznetsovvj avatar Nov 10 '22 18:11 kuznetsovvj