We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f48eae8 commit cb7f35eCopy full SHA for cb7f35e
src/vnc/vncclient.cc
@@ -503,10 +503,10 @@ void VNCClient::sendKeyEvent(QKeyEvent *key)
503
504
quint32 keyValue = convertQtKeyToX11Key(key);
505
char value[4];
506
- value[0] = (char)(keyValue&0xff000000)>>24;
507
- value[1] = (char)(keyValue&0x00ff0000)>>16;
508
- value[2] = (char)(keyValue&0x0000ff00)>>8;
509
- value[3] = (char)keyValue&0x000000ff;
+ value[0] = (char)((keyValue&0xff000000)>>24);
+ value[1] = (char)((keyValue&0x00ff0000)>>16);
+ value[2] = (char)((keyValue&0x0000ff00)>>8);
+ value[3] = (char)(keyValue&0x000000ff);
510
keyMsg.insert(4, value[0]);
511
keyMsg.insert(5, value[1]);
512
keyMsg.insert(6, value[2]);
0 commit comments