Commit b575e065 authored by hjk's avatar hjk
Browse files

fakevim: make Ctrl-c work in insert and ex mode

parent cb7bc388
......@@ -1475,7 +1475,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
EventResult FakeVimHandler::Private::handleInsertMode(int key, int,
const QString &text)
{
if (key == Key_Escape || key == 27) {
if (key == Key_Escape || key == 27 || key == control('c')) {
// start with '1', as one instance was already physically inserted
// while typing
QString data = m_lastInsertion;
......@@ -1573,7 +1573,7 @@ EventResult FakeVimHandler::Private::handleMiniBufferModes(int key, int unmodifi
{
Q_UNUSED(text)
if (key == Key_Escape) {
if (key == Key_Escape || key == control('c')) {
m_commandBuffer.clear();
enterCommandMode();
updateMiniBuffer();
......
Markdown is supported
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