From 58c4da34ccf770a58d2baeb45d5149b67ca55676 Mon Sep 17 00:00:00 2001 From: Petr Vanek Date: Mon, 1 Sep 2014 14:46:28 +0200 Subject: [PATCH] fixed qterminal #71 qt5 version ignoring page up / down --- lib/Vt102Emulation.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Vt102Emulation.cpp b/lib/Vt102Emulation.cpp index d2c5b8b..cb92363 100644 --- a/lib/Vt102Emulation.cpp +++ b/lib/Vt102Emulation.cpp @@ -958,6 +958,12 @@ void Vt102Emulation::sendKeyEvent( QKeyEvent* event ) else if(event->key() == Qt::Key_Tab) { textToSend += 0x09; } + else if (event->key() == Qt::Key_PageUp) { + textToSend += "\033[5~"; + } + else if (event->key() == Qt::Key_PageDown) { + textToSend += "\033[6~"; + } else { textToSend += _codec->fromUnicode(event->text()); }