diff options
| author | Johannes Altmanninger <aclopte@gmail.com> | 2022-02-09 12:43:36 +0100 |
|---|---|---|
| committer | Johannes Altmanninger <aclopte@gmail.com> | 2022-04-16 19:56:26 +0200 |
| commit | 0cf71910336e07ff1bde6cf26e2fd3161f059f07 (patch) | |
| tree | 35ca12112346df74275f7e0a3fe1107b612f45cd /src/keys.cc | |
| parent | 90db664635013f6e857ec696403f2164032410a8 (diff) | |
Make Shift+Space insert a space in insert mode
Terminals that support CSI u escape codes (like iTerm2, Kitty and foot)
allow us to map <s-space> independently of <space>.
Users expect that <s-space> inputs a space character; make it so.
Fixes #4534
Also reported in https://discuss.kakoune.com/t/shift-space-doesnt-send-space-character/2004
Diffstat (limited to 'src/keys.cc')
| -rw-r--r-- | src/keys.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keys.cc b/src/keys.cc index 8eb3fce0..e1f3e2c9 100644 --- a/src/keys.cc +++ b/src/keys.cc @@ -49,7 +49,7 @@ Optional<Codepoint> Key::codepoint() const return '\n'; if (*this == Key::Tab) return '\t'; - if (*this == Key::Space) + if (*this == Key::Space or *this == shift(Key::Space)) return ' '; if (*this == Key::Escape) return 0x1B; |
