зеркало из https://github.com/mozilla/gecko-dev.git
Fixing key value for ctrl+keys.
This commit is contained in:
Родитель
25630e943c
Коммит
556e5e31e7
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче