fixed PrintScrn handling; it was being changed to keypad multiply.

This commit is contained in:
crs
2002-08-18 17:35:10 +00:00
parent a0c2cd10dd
commit a4db7f0005
3 changed files with 39 additions and 5 deletions

View File

@@ -929,6 +929,15 @@ CMSWindowsPrimaryScreen::mapKey(
vkCode2 = vkCode;
}
// if the original vkCode is VK_SNAPSHOT then use it. oddly enough,
// some keyboards use the same scan code for keypad multiply and
// print screen. the difference is that the latter has the extended
// key flag set. but MapVirtualKey() doesn't seem capable of using
// that flag.
else if (vkCode == VK_SNAPSHOT) {
vkCode2 = vkCode;
}
// if MapVirtualKey failed then use original virtual key
else if (vkCode2 == 0) {
vkCode2 = vkCode;