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