Properly implement the "Action after paste" feature

Scroll to end only when data is not from pasting

Fixes https://github.com/lxqt/qterminal/issues/43
Fixes https://github.com/lxqt/qterminal/issues/741
This commit is contained in:
Chih-Hsuan Yen
2020-11-30 02:11:09 +08:00
parent 5b1a15bef8
commit 71f8049760
8 changed files with 38 additions and 41 deletions
+3 -1
View File
@@ -112,6 +112,8 @@ ScreenWindow* Emulation::createWindow()
connect(this, &Emulation::handleCommandFromKeyboard,
window, &ScreenWindow::handleCommandFromKeyboard);
connect(this, &Emulation::outputFromKeypressEvent,
window, &ScreenWindow::scrollToEnd);
return window;
}
@@ -210,7 +212,7 @@ void Emulation::receiveChar(wchar_t c)
};
}
void Emulation::sendKeyEvent( QKeyEvent* ev )
void Emulation::sendKeyEvent(QKeyEvent* ev, bool)
{
emit stateSet(NOTIFYNORMAL);