Bug 600117 part.6 Implement KeyboardEvent.repeat on OS/2 r=daveryeo

This commit is contained in:
Masayuki Nakano 2013-11-07 20:17:33 +09:00
parent 0c8f5605d8
commit b8abd43bf8

View File

@ -2768,6 +2768,7 @@ bool nsWindow::DispatchKeyEvent(MPARAM mp1, MPARAM mp2)
event.InitBasicModifiers(fsFlags & KC_CTRL, fsFlags & KC_ALT,
fsFlags & KC_SHIFT, false);
event.charCode = 0;
event.mIsRepeat = event.message == NS_KEY_DOWN && CHAR3FROMMP(mp1) != 0;
// Check for a scroll mouse event vs. a keyboard event. The way we know
// this is that the repeat count is 0 and the key is not physically down.