summaryrefslogtreecommitdiff
authortreke <treke>2002-09-05 19:01:26 (UTC)
committer treke <treke>2002-09-05 19:01:26 (UTC)
commitb95c5502fb1b7425fe0cc503a17d8dd3658b032b (patch) (unidiff)
tree4a6cdd9a3e7cf04a743465981537e987b100cd81
parent3b604a204719a4b45360a9d8685d4bb51a32b9dd (diff)
downloadopie-b95c5502fb1b7425fe0cc503a17d8dd3658b032b.zip
opie-b95c5502fb1b7425fe0cc503a17d8dd3658b032b.tar.gz
opie-b95c5502fb1b7425fe0cc503a17d8dd3658b032b.tar.bz2
Fixed the Send Control Alt Delete option
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/comm/keypebble/krfbcanvas.cpp8
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
@@ -140,36 +140,40 @@ void KRFBCanvas::contentsMouseMoveEvent( QMouseEvent *e )
140 connection_->buffer()->mouseEvent( e ); 140 connection_->buffer()->mouseEvent( e );
141} 141}
142 142
143void KRFBCanvas::keyPressEvent( QKeyEvent *e ) 143void KRFBCanvas::keyPressEvent( QKeyEvent *e )
144{ 144{
145 if ( loggedIn_ ) 145 if ( loggedIn_ )
146 connection_->buffer()->keyPressEvent( e ); 146 connection_->buffer()->keyPressEvent( e );
147} 147}
148 148
149void KRFBCanvas::keyReleaseEvent( QKeyEvent *e ) 149void KRFBCanvas::keyReleaseEvent( QKeyEvent *e )
150{ 150{
151 if ( loggedIn_ ) 151 if ( loggedIn_ )
152 connection_->buffer()->keyReleaseEvent( e ); 152 connection_->buffer()->keyReleaseEvent( e );
153} 153}
154 154
155void KRFBCanvas::refresh() 155void KRFBCanvas::refresh()
156{ 156{
157 if ( loggedIn_ ) 157 if ( loggedIn_ )
158 connection_->refresh(); 158 connection_->refresh();
159} 159}
160 160
161void KRFBCanvas::clipboardChanged() 161void 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}
167void KRFBCanvas::sendCtlAltDel( void) 167void 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}