fakevim: properly handle ø in the minibuffer

This commit is contained in:
hjk
2010-04-15 13:54:35 +02:00
parent 1f176af9d4
commit a51cf52430

View File

@@ -2433,7 +2433,7 @@ EventResult FakeVimHandler::Private::handleMiniBufferModes(const Input &input)
m_commandBuffer += QChar(9); m_commandBuffer += QChar(9);
updateMiniBuffer(); updateMiniBuffer();
} else if (QChar(key).isPrint()) { } else if (QChar(key).isPrint()) {
m_commandBuffer += QChar(key); m_commandBuffer += input.text;
updateMiniBuffer(); updateMiniBuffer();
} else { } else {
qDebug() << "IGNORED IN MINIBUFFER MODE: " << key << text; 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()) { if (active && ev->type() == QEvent::KeyPress && ob == d->editor()) {
QKeyEvent *kev = static_cast<QKeyEvent *>(ev); QKeyEvent *kev = static_cast<QKeyEvent *>(ev);
KEY_DEBUG("KEYPRESS" << kev->key()); KEY_DEBUG("KEYPRESS" << kev->key() << kev->text() << QChar(kev->key()));
EventResult res = d->handleEvent(kev); EventResult res = d->handleEvent(kev);
// returning false core the app see it // returning false core the app see it
//KEY_DEBUG("HANDLED CODE:" << res); //KEY_DEBUG("HANDLED CODE:" << res);