Check modifiers before inserting codepoints in the line editor
This commit is contained in:
parent
7a7f86a205
commit
def33de9bc
|
@ -286,7 +286,7 @@ public:
|
||||||
to_next_word_end<Word>(m_cursor_pos, m_line);
|
to_next_word_end<Word>(m_cursor_pos, m_line);
|
||||||
else if (key == ctrlalt('e'))
|
else if (key == ctrlalt('e'))
|
||||||
to_next_word_end<WORD>(m_cursor_pos, m_line);
|
to_next_word_end<WORD>(m_cursor_pos, m_line);
|
||||||
else
|
else if (key.modifiers == Key::Modifiers::None)
|
||||||
{
|
{
|
||||||
m_line = m_line.substr(0, m_cursor_pos) + codepoint_to_str(key.key)
|
m_line = m_line.substr(0, m_cursor_pos) + codepoint_to_str(key.key)
|
||||||
+ m_line.substr(m_cursor_pos);
|
+ m_line.substr(m_cursor_pos);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user