Merge remote-tracking branch 'krobelus/shift-space'

This commit is contained in:
Maxime Coste 2022-06-04 10:53:50 +10:00
commit e08383a31a
2 changed files with 2 additions and 2 deletions

View File

@ -1003,7 +1003,7 @@ public:
}
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),

View File

@ -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;