Skip to content

Commit

Permalink
fixed qterminal #71 qt5 version ignoring page up / down
Browse files Browse the repository at this point in the history
  • Loading branch information
pvanek committed Sep 1, 2014
1 parent ebf7d6c commit 58c4da3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Vt102Emulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 58c4da3

Please sign in to comment.