diff options
| author | Maxime Coste <mawww@kakoune.org> | 2021-12-11 08:12:08 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2021-12-11 08:12:08 +1100 |
| commit | 658b6b0f1aad8dc85c2a49bb50d50e71d0174f1e (patch) | |
| tree | e6e11685df3d743497083db5d641ffd776e497c7 /src/normal.cc | |
| parent | 36eebbce4f803cf08c60bd10c094d06692d84195 (diff) | |
Make space a named key to correctly handle shift modifier
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/normal.cc b/src/normal.cc index a512f8d0..c1a084a4 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1293,7 +1293,7 @@ void select_object(Context& context, NormalParams params) { alt('w'), select_word<WORD> }, { 's', select_sentence }, { 'p', select_paragraph }, - { ' ', select_whitespaces }, + { Key::Space, select_whitespaces }, { 'i', select_indent }, { 'n', select_number }, { 'u', select_argument }, @@ -1399,7 +1399,7 @@ void select_object(Context& context, NormalParams params) {{alt('w')}, "WORD"}, {{'s'}, "sentence"}, {{'p'}, "paragraph"}, - {{' '}, "whitespaces"}, + {{Key::Space}, "whitespaces"}, {{'i'}, "indent"}, {{'u'}, "argument"}, {{'n'}, "number"}, @@ -2278,8 +2278,8 @@ static constexpr HashMap<Key, NormalCmd, MemoryDomain::Undefined, KeymapBackend> { {'!'}, {"insert command output", insert_output<PasteMode::Insert>} }, { {alt('!')}, {"append command output", insert_output<PasteMode::Append>} }, - { {' '}, {"remove all selections except main", keep_selection} }, - { {alt(' ')}, {"remove main selection", remove_selection} }, + { {Key::Space}, {"remove all selections except main", keep_selection} }, + { {alt(Key::Space)}, {"remove main selection", remove_selection} }, { {';'}, {"reduce selections to their cursor", clear_selections} }, { {alt(';')}, {"swap selections cursor and anchor", flip_selections} }, { {alt(':')}, {"ensure selection cursor is after anchor", ensure_forward} }, |
