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:
+3
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user