mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 21:58:06 +00:00
Fixing key value for ctrl+keys.
This commit is contained in:
parent
25630e943c
commit
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user