author | sandman <sandman> | 2002-06-20 17:36:21 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-06-20 17:36:21 (UTC) |
commit | fd64293dbcfae3bcf3265e31fbe847ac86b2a0af (patch) (unidiff) | |
tree | 77b9541ed66bf6cc388da18cc7cdbe463cc2930e | |
parent | 0996b7f1bcbdb05db00eadb0cdd60b2066cdd899 (diff) | |
download | opie-fd64293dbcfae3bcf3265e31fbe847ac86b2a0af.zip opie-fd64293dbcfae3bcf3265e31fbe847ac86b2a0af.tar.gz opie-fd64293dbcfae3bcf3265e31fbe847ac86b2a0af.tar.bz2 |
virtual key events should use sendKeyEvent, not processKeyEvents
-rw-r--r-- | core/applets/clipboardapplet/clipboard.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/applets/clipboardapplet/clipboard.cpp b/core/applets/clipboardapplet/clipboard.cpp index cd4f61c..203e23e 100644 --- a/core/applets/clipboardapplet/clipboard.cpp +++ b/core/applets/clipboardapplet/clipboard.cpp | |||
@@ -142,36 +142,36 @@ void ClipboardApplet::mousePressEvent ( QMouseEvent *) | |||
142 | menu-> popup ( QPoint ( p. x ( ) + ( width ( ) / 2 ) - ( s. width ( ) / 2 ), p. y ( ) - s. height ( ))); | 142 | menu-> popup ( QPoint ( p. x ( ) + ( width ( ) / 2 ) - ( s. width ( ) / 2 ), p. y ( ) - s. height ( ))); |
143 | } | 143 | } |
144 | 144 | ||
145 | void ClipboardApplet::action(int id) | 145 | void ClipboardApplet::action(int id) |
146 | { | 146 | { |
147 | ushort unicode=0; | 147 | ushort unicode=0; |
148 | int scan=0; | 148 | int scan=0; |
149 | 149 | ||
150 | switch ( id ) { | 150 | switch ( id ) { |
151 | case 0: | 151 | case 0: |
152 | unicode='X'-'@'; | 152 | unicode='X'-'@'; |
153 | scan=Key_X; // Cut | 153 | scan=Key_X; // Cut |
154 | break; | 154 | break; |
155 | case 1: | 155 | case 1: |
156 | unicode='C'-'@'; | 156 | unicode='C'-'@'; |
157 | scan=Key_C; // Copy | 157 | scan=Key_C; // Copy |
158 | break; | 158 | break; |
159 | case 2: | 159 | case 2: |
160 | unicode='V'-'@'; | 160 | unicode='V'-'@'; |
161 | scan=Key_V; // Paste | 161 | scan=Key_V; // Paste |
162 | break; | 162 | break; |
163 | } | 163 | } |
164 | 164 | ||
165 | if ( scan ) { | 165 | if ( scan ) { |
166 | qwsServer->processKeyEvent( unicode, scan, ControlButton, TRUE, FALSE ); | 166 | qwsServer-> sendKeyEvent ( unicode, scan, ControlButton, true, false ); |
167 | qwsServer->processKeyEvent( unicode, scan, ControlButton, FALSE, FALSE ); | 167 | qwsServer-> sendKeyEvent ( unicode, scan, ControlButton, true, false ); |
168 | } | 168 | } |
169 | } | 169 | } |
170 | 170 | ||
171 | void ClipboardApplet::paintEvent ( QPaintEvent* ) | 171 | void ClipboardApplet::paintEvent ( QPaintEvent* ) |
172 | { | 172 | { |
173 | QPainter p ( this ); | 173 | QPainter p ( this ); |
174 | p. drawPixmap ( 0, 1, clipboardPixmap ); | 174 | p. drawPixmap ( 0, 1, clipboardPixmap ); |
175 | } | 175 | } |
176 | 176 | ||
177 | 177 | ||