From a51cf52430fbdbc8f286e8a14a1909daac5deb9e Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 15 Apr 2010 13:54:35 +0200 Subject: [PATCH] =?UTF-8?q?fakevim:=20properly=20handle=20=C3=B8=20in=20th?= =?UTF-8?q?e=20minibuffer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/fakevim/fakevimhandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/fakevim/fakevimhandler.cpp b/src/plugins/fakevim/fakevimhandler.cpp index 07cb01fda43..ce572d5c81d 100644 --- a/src/plugins/fakevim/fakevimhandler.cpp +++ b/src/plugins/fakevim/fakevimhandler.cpp @@ -2433,7 +2433,7 @@ EventResult FakeVimHandler::Private::handleMiniBufferModes(const Input &input) m_commandBuffer += QChar(9); updateMiniBuffer(); } else if (QChar(key).isPrint()) { - m_commandBuffer += QChar(key); + m_commandBuffer += input.text; updateMiniBuffer(); } else { qDebug() << "IGNORED IN MINIBUFFER MODE: " << key << text; @@ -3986,7 +3986,7 @@ bool FakeVimHandler::eventFilter(QObject *ob, QEvent *ev) if (active && ev->type() == QEvent::KeyPress && ob == d->editor()) { QKeyEvent *kev = static_cast(ev); - KEY_DEBUG("KEYPRESS" << kev->key()); + KEY_DEBUG("KEYPRESS" << kev->key() << kev->text() << QChar(kev->key())); EventResult res = d->handleEvent(kev); // returning false core the app see it //KEY_DEBUG("HANDLED CODE:" << res);