Handle keyboard commands properly

It was hard-coded in TerminalDisplay.cpp - Shift+Up always results in
ScrollLineUpCommand regardless of settings in *.keytab. Now those
commands are correctly parsed by KeyboardTranslator.

Fixes lxde/qterminal#348

This fix is similar to KDE/konsole@b88dfb402a
while I use signals and slots instead of introducing new pointers. That
sounds more reliable :)
This commit is contained in:
Yen Chi Hsuan
2017-08-29 23:34:12 +08:00
committed by Chih-Hsuan Yen
parent 2df79b77bf
commit c797ccf97d
7 changed files with 65 additions and 46 deletions
+4
View File
@@ -109,6 +109,10 @@ ScreenWindow* Emulation::createWindow()
connect(this , SIGNAL(outputChanged()),
window , SLOT(notifyOutputChanged()) );
connect(this, &Emulation::handleCommandFromKeyboard,
window, &ScreenWindow::handleCommandFromKeyboard);
return window;
}