zyedidia / micro

A modern and intuitive terminal-based text editor
https://micro-editor.github.io
MIT License
24.39k stars 1.16k forks source link

Alt-Shift-Left or Alt-Shift-Right are not recognized desipte getting detected in raw #3299

Closed Neko-Box-Coder closed 1 month ago

Neko-Box-Coder commented 1 month ago

Description of the problem or steps to reproduce

Bind "Alt-Shift-Left" (or Right) to something for example "Shift-Alt-Left": "Quit" in bindings.json It should do the assigned action, but instead it is not doing anything.

Running > raw does show it is able to intercept it Shift-Alt-<Any arrow keys> combinatione

Specifications

Version: 2.0.14-dev.185 Commit hash: 91765082 OS: Linux (Arch) Terminal: WezTerm and Tabby

Andriamanitra commented 1 month ago

I'm unable to reproduce the issue. Does it work if you run micro with default configuration (micro -config-dir /tmp) and bind the key by entering bind Shift-Alt-Left Quit in micro command prompt?

Neko-Box-Coder commented 1 month ago

Thanks @Andriamanitra

I can't reproduce the problem now but I think it was because there were some duplicated key combinations in my bindings.json and also I was unbinding default keys.

I think micro should output an error if the bindings.json contains duplicated/conflicting key combinations.