Bug 962140 NativeKey should not check scan code at comparing found char message and removed char message r=jimm

This commit is contained in:
Masayuki Nakano 2014-02-18 21:42:04 +09:00
Родитель 648ec3e0c8
Коммит cf2d9778f3
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -1367,9 +1367,14 @@ NativeKey::GetFollowingCharMessage(MSG& aCharMsg) const
continue;
}
// NOTE: Although, we don't know when this case occurs, the scan code value
// in lParam may be changed from 0 to something. The changed value
// is different from the scan code of handling keydown message.
static const LPARAM kScanCodeMask = 0x00FF0000;
if (removedMsg.message != nextKeyMsg.message ||
removedMsg.wParam != nextKeyMsg.wParam ||
removedMsg.lParam != nextKeyMsg.lParam) {
(removedMsg.lParam & ~kScanCodeMask) !=
(nextKeyMsg.lParam & ~kScanCodeMask)) {
#ifdef MOZ_CRASHREPORTER
nsPrintfCString info("\nHandling message: %s (0x%08X), wParam: 0x%08X, "
"lParam: 0x%08X, InSendMessageEx()=%s, \n"