From f52c1c651ddea66eb348f1231364e97ec4f0fb69 Mon Sep 17 00:00:00 2001 From: Kurt Granroth Date: Tue, 11 Jan 2000 08:10:22 +0000 Subject: [PATCH] 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 --- src/TEWidget.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TEWidget.C b/src/TEWidget.C index f0eeb573..33f31d16 100644 --- a/src/TEWidget.C +++ b/src/TEWidget.C @@ -786,7 +786,7 @@ void TEWidget::emitSelection() QString text = QApplication::clipboard()->text(); if ( ! text.isNull() ) { 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 clearSelectionSignal(); }