summaryrefslogtreecommitdiff
path: root/src/plugins/fakevim/fakevimhandler.cpp
diff options
context:
space:
mode:
authorThorben Kroeger <thorbenkroeger@gmail.com>2015-03-22 11:21:28 +0100
committerhjk <hjk@theqtcompany.com>2015-03-24 15:04:07 +0000
commit161c07f60545125f94055376c950ec4480f15006 (patch)
treebebc13bcdbb11fbe8e3365f5c123678bbd6d5f2e /src/plugins/fakevim/fakevimhandler.cpp
parent430914b478024a99da1a9b6264c8a4850fd27088 (diff)
downloadqt-creator-161c07f60545125f94055376c950ec4480f15006.tar.gz
FakeVim: C-h in insert mode acts like backspace
In insert mode: input: xyz| keys: C-h result: xy| Change-Id: I6832787683485be3031b1d9ff55d459cb25b74b4 Reviewed-by: Lukas Holecek <hluk@email.cz> Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'src/plugins/fakevim/fakevimhandler.cpp')
-rw-r--r--src/plugins/fakevim/fakevimhandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/fakevim/fakevimhandler.cpp b/src/plugins/fakevim/fakevimhandler.cpp
index 3956a3454f..0cd8501865 100644
--- a/src/plugins/fakevim/fakevimhandler.cpp
+++ b/src/plugins/fakevim/fakevimhandler.cpp
@@ -4953,7 +4953,8 @@ void FakeVimHandler::Private::handleInsertMode(const Input &input)
endEditBlock();
}
} else if (input.isBackspace()) {
- if (!handleInsertInEditor(input)) {
+ // pass C-h as backspace, too
+ if (!handleInsertInEditor(Input(Qt::Key_Backspace, Qt::NoModifier))) {
joinPreviousEditBlock();
if (!m_buffer->lastInsertion.isEmpty()
|| hasConfig(ConfigBackspace, "start")