-rw-r--r-- | noncore/comm/keypebble/krfbcanvas.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/noncore/comm/keypebble/krfbcanvas.cpp b/noncore/comm/keypebble/krfbcanvas.cpp index 896de7f..918ce8b 100644 --- a/noncore/comm/keypebble/krfbcanvas.cpp +++ b/noncore/comm/keypebble/krfbcanvas.cpp | |||
@@ -160,16 +160,20 @@ void KRFBCanvas::refresh() | |||
160 | 160 | ||
161 | void KRFBCanvas::clipboardChanged() | 161 | void KRFBCanvas::clipboardChanged() |
162 | { | 162 | { |
163 | if ( loggedIn_ ) { | 163 | if ( loggedIn_ ) { |
164 | connection_->sendCutText( qApp->clipboard()->text() ); | 164 | connection_->sendCutText( qApp->clipboard()->text() ); |
165 | } | 165 | } |
166 | } | 166 | } |
167 | void KRFBCanvas::sendCtlAltDel( void) | 167 | void KRFBCanvas::sendCtlAltDel( void) |
168 | { | 168 | { |
169 | 169 | ||
170 | qDebug("Here"); | 170 | qDebug("Here"); |
171 | if ( loggedIn_ ) { | 171 | if ( loggedIn_ ) { |
172 | connection_->buffer()->keyPressEvent( &QKeyEvent(QEvent::KeyPress,Qt::Key_Delete, 0x7f,ControlButton|AltButton)); | 172 | connection_->buffer()->keyPressEvent( &QKeyEvent(QEvent::KeyPress,Qt::Key_Control, 0,0)); |
173 | // connection_->buffer()->keyPressEvent( &QKeyEvent(QEvent::KeyRelease,Qt::Key_Delete, 0x7f,ControlButton|AltButton)); | 173 | connection_->buffer()->keyPressEvent( &QKeyEvent(QEvent::KeyPress,Qt::Key_Alt, 0,0)); |
174 | connection_->buffer()->keyPressEvent( &QKeyEvent(QEvent::KeyPress,Qt::Key_Delete, 0,0)); | ||
175 | connection_->buffer()->keyPressEvent( &QKeyEvent(QEvent::KeyRelease,Qt::Key_Control, 0,0)); | ||
176 | connection_->buffer()->keyPressEvent( &QKeyEvent(QEvent::KeyRelease,Qt::Key_Alt, 0,0)); | ||
177 | connection_->buffer()->keyPressEvent( &QKeyEvent(QEvent::KeyRelease,Qt::Key_Delete, 0,0)); | ||
174 | } | 178 | } |
175 | } | 179 | } |