Fixing key value for ctrl+keys.

This commit is contained in:
joki%netscape.com 1999-07-27 14:38:07 +00:00
Родитель 7c2e0f9c4c
Коммит 73a006aee8
2 изменённых файлов: 16 добавлений и 0 удалений

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

@ -141,6 +141,14 @@ nsEventStateManager::PreHandleEvent(nsIPresContext& aPresContext,
case NS_LOSTFOCUS:
//XXX Do we need window related focus change stuff here?
break;
case NS_KEY_PRESS:
{
nsKeyEvent * keyEvent = (nsKeyEvent *)aEvent;
if (keyEvent->isControl) {
keyEvent->charCode += 64;
}
}
break;
}
return NS_OK;
}

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

@ -141,6 +141,14 @@ nsEventStateManager::PreHandleEvent(nsIPresContext& aPresContext,
case NS_LOSTFOCUS:
//XXX Do we need window related focus change stuff here?
break;
case NS_KEY_PRESS:
{
nsKeyEvent * keyEvent = (nsKeyEvent *)aEvent;
if (keyEvent->isControl) {
keyEvent->charCode += 64;
}
}
break;
}
return NS_OK;
}