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
-3
@@ -174,8 +174,8 @@ void Session::addView(TerminalDisplay * widget)
|
||||
|
||||
if ( _emulation != nullptr ) {
|
||||
// connect emulation - view signals and slots
|
||||
connect( widget , SIGNAL(keyPressedSignal(QKeyEvent *)) , _emulation ,
|
||||
SLOT(sendKeyEvent(QKeyEvent *)) );
|
||||
connect( widget , &TerminalDisplay::keyPressedSignal, _emulation ,
|
||||
&Emulation::sendKeyEvent);
|
||||
connect( widget , SIGNAL(mouseSignal(int,int,int,int)) , _emulation ,
|
||||
SLOT(sendMouseEvent(int,int,int,int)) );
|
||||
connect( widget , SIGNAL(sendStringToEmu(const char *)) , _emulation ,
|
||||
@@ -567,7 +567,7 @@ void Session::sendText(const QString & text) const
|
||||
|
||||
void Session::sendKeyEvent(QKeyEvent* e) const
|
||||
{
|
||||
_emulation->sendKeyEvent(e);
|
||||
_emulation->sendKeyEvent(e, false);
|
||||
}
|
||||
|
||||
Session::~Session()
|
||||
|
||||
Reference in New Issue
Block a user