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
+2 -2
View File
@@ -328,8 +328,8 @@ void QTermWidget::init(int startnow)
this, SIGNAL(termGetFocus()));
connect(m_impl->m_terminalDisplay, SIGNAL(termLostFocus()),
this, SIGNAL(termLostFocus()));
connect(m_impl->m_terminalDisplay, SIGNAL(keyPressedSignal(QKeyEvent *)),
this, SIGNAL(termKeyPressed(QKeyEvent *)));
connect(m_impl->m_terminalDisplay, &TerminalDisplay::keyPressedSignal,
[this] (QKeyEvent* e, bool) { Q_EMIT termKeyPressed(e); });
// m_impl->m_terminalDisplay->setSize(80, 40);
QFont font = QApplication::font();