Fixed ctrl+alt+del emulation on win32 server. It was mapping
VK_DELETE to the keypad delete key. This key is not interpreted on the client as causing ctrl+alt+del.
This commit is contained in:
parent
93d74a1fda
commit
ce399937f0
|
@ -1078,6 +1078,13 @@ CMSWindowsKeyState::doUpdateKeys()
|
||||||
m_scanCodeToVirtKey[button2] = i;
|
m_scanCodeToVirtKey[button2] = i;
|
||||||
m_virtKeyToScanCode[i] = button;
|
m_virtKeyToScanCode[i] = button;
|
||||||
|
|
||||||
|
// if the virtual key is VK_DELETE then use the extended
|
||||||
|
// scan code. this is important for simulating ctrl+alt+del
|
||||||
|
// which only works with the extended key.
|
||||||
|
if (i == VK_DELETE) {
|
||||||
|
m_virtKeyToScanCode[i] |= 0x100u;
|
||||||
|
}
|
||||||
|
|
||||||
// save the key state
|
// save the key state
|
||||||
if ((keyState[i] & 0x80) != 0) {
|
if ((keyState[i] & 0x80) != 0) {
|
||||||
setKeyDown(button, true);
|
setKeyDown(button, true);
|
||||||
|
|
Loading…
Reference in New Issue