CMD + SHIFT mappings are inconsistent #25068
Labels
bug
issues reporting wrong behavior
complexity:low
Low-risk, self-contained. Do NOT ask "can I work on this", just read CONTRIBUTING.md
mappings
key bindings
Problem
CMD + SHIFT mappings behave differently from other mappings like ALT + SHIFT and are not normalized to a standard format. The reason seems to be this line, which I have found no explanation for
neovim/src/nvim/keycodes.c
Line 774 in 6e26964
This also makes mappings between different Neovim GUIs inconsistent, since each of them reports the mappings slightly differently to Neovim.
NOTE: I'm aware that the CTRL mappings behaves differently due to legacy reasons, and it's also clear why the CTRL condition is there. But not why the condition is there for CMD.
Steps to reproduce
mappings.vim
with the following contentsnvim --clean -u mappings.vim
:messages
Expected behavior
The output should be:
Making the
D
andM
mappings consistent, and select the last shift combination that was mapped.Neovim version (nvim -v)
NVIM v0.9.2
Vim (not Nvim) behaves the same?
N/A
Operating system/version
Arch Linux (WSL)
Terminal name/version
Windows Terminal
$TERM environment variable
xterm-256color
Installation
pacman
The text was updated successfully, but these errors were encountered: