Commit 0a6bb82e authored by Vladimir Kuznetsov's avatar Vladimir Kuznetsov Committed by hjk
Browse files

Handle Home and End keys in insert mode.



Merge-request: 132
Reviewed-by: default avatarhjk <qtc-committer@nokia.com>
parent 66a7cc28
......@@ -2248,6 +2248,16 @@ EventResult FakeVimHandler::Private::handleInsertMode(const Input &input)
moveRight(count());
setTargetColumn();
m_lastInsertion.clear();
} else if (key == Key_Home) {
moveToStartOfLine();
setTargetColumn();
m_lastInsertion.clear();
} else if (key == Key_End) {
if (count() > 1)
moveDown(count() - 1);
moveBehindEndOfLine();
setTargetColumn();
m_lastInsertion.clear();
} else if (key == Key_Return) {
m_submode = NoSubMode;
m_tc.insertBlock();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment