mirror of
https://github.com/KDE/konsole.git
synced 2026-05-04 12:44:23 -04:00
clear appearance of selection after pasting. Don't extend selection while
pasting. svn path=/trunk/kdebase/konsole/; revision=33262
This commit is contained in:
@@ -520,6 +520,9 @@ void TEWidget::mousePressEvent(QMouseEvent* ev)
|
||||
void TEWidget::mouseMoveEvent(QMouseEvent* ev)
|
||||
{
|
||||
if (actSel == 0) return;
|
||||
if (ev->state() & MidButton)
|
||||
return; // don't extend selection while pasting
|
||||
|
||||
//if ( !contentsRect().contains(ev->pos()) ) return;
|
||||
QPoint tL = contentsRect().topLeft();
|
||||
int tLx = tL.x();
|
||||
@@ -715,6 +718,7 @@ void TEWidget::emitSelection()
|
||||
text.replace(QRegExp("\n"), "\r");
|
||||
QKeyEvent e(QEvent::KeyPress, 0,0,0, text);
|
||||
emit keyPressedSignal(&e); // expose as a big fat keypress event
|
||||
emit clearSelectionSignal();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user