Skip to content

Commit

Permalink
Merge remote-tracking branch 'krobelus/shift-space'
Browse files Browse the repository at this point in the history
  • Loading branch information
mawww committed Jun 4, 2022
2 parents 56bcb6b + 0cf7191 commit e08383a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/input_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ class Prompt : public InputMode
}
else
{
if (key == Key::Space and
if ((key == Key::Space or key == shift(Key::Space)) and
not (m_completions.flags & Completions::Flags::Quoted) and // if token is quoted, this space does not end it
can_auto_insert_completion())
m_line_editor.insert_from(line.char_count_to(m_completions.start),
Expand Down
2 changes: 1 addition & 1 deletion src/keys.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e08383a

Please sign in to comment.