Merge remote-tracking branch 'krobelus/shift-space'
This commit is contained in:
commit
e08383a31a
|
@ -1003,7 +1003,7 @@ public:
|
||||||
}
|
}
|
||||||
else
|
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
|
not (m_completions.flags & Completions::Flags::Quoted) and // if token is quoted, this space does not end it
|
||||||
can_auto_insert_completion())
|
can_auto_insert_completion())
|
||||||
m_line_editor.insert_from(line.char_count_to(m_completions.start),
|
m_line_editor.insert_from(line.char_count_to(m_completions.start),
|
||||||
|
|
|
@ -49,7 +49,7 @@ Optional<Codepoint> Key::codepoint() const
|
||||||
return '\n';
|
return '\n';
|
||||||
if (*this == Key::Tab)
|
if (*this == Key::Tab)
|
||||||
return '\t';
|
return '\t';
|
||||||
if (*this == Key::Space)
|
if (*this == Key::Space or *this == shift(Key::Space))
|
||||||
return ' ';
|
return ' ';
|
||||||
if (*this == Key::Escape)
|
if (*this == Key::Escape)
|
||||||
return 0x1B;
|
return 0x1B;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user