Hack to get paste working again (I can't live without paste!). I

don't know if this is correct or not.  Basically, I'm sending -1 in
the ascii() field of the KeyEvent.  Either this is correct OR line
1012 in TEmuVt102.C should be 'if (0 < ev->ascii() && ev->ascii() < 32)'

svn path=/trunk/kdebase/konsole/; revision=38056
wilder-portage
Kurt Granroth 27 years ago
parent 7745ef4db4
commit f52c1c651d
  1. 2
      src/TEWidget.C

@ -786,7 +786,7 @@ void TEWidget::emitSelection()
QString text = QApplication::clipboard()->text(); QString text = QApplication::clipboard()->text();
if ( ! text.isNull() ) { if ( ! text.isNull() ) {
text.replace(QRegExp("\n"), "\r"); text.replace(QRegExp("\n"), "\r");
QKeyEvent e(QEvent::KeyPress, 0,0,0, text); QKeyEvent e(QEvent::KeyPress, 0,-1,0, text);
emit keyPressedSignal(&e); // expose as a big fat keypress event emit keyPressedSignal(&e); // expose as a big fat keypress event
emit clearSelectionSignal(); emit clearSelectionSignal();
} }

Loading…
Cancel
Save