diff options
Diffstat (limited to 'src/input_handler.cc')
| -rw-r--r-- | src/input_handler.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc index 88f986ba..be4aa51f 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -95,6 +95,10 @@ public: if (m_cursor_pos < m_line.char_length()) ++m_cursor_pos; } + else if (key == Key::Home) + m_cursor_pos = 0; + else if (key == Key::End) + m_cursor_pos = m_line.char_length(); else if (key == Key::Backspace) { if (m_cursor_pos != 0) |
