Bug 600117 part.7 Implement KeyboardEvent.repeat on Qt r=romaxa

This commit is contained in:
Masayuki Nakano 2013-11-07 20:17:33 +09:00
parent 9bb2a5bd9a
commit 41ab6ff98c

View File

@ -169,6 +169,9 @@ InitKeyEvent(WidgetKeyboardEvent &aEvent, QKeyEvent *aQEvent)
aQEvent->modifiers() & Qt::AltModifier,
aQEvent->modifiers() & Qt::ShiftModifier,
aQEvent->modifiers() & Qt::MetaModifier);
aEvent.mIsRepeat =
(aEvent.message == NS_KEY_DOWN || aEvent.message == NS_KEY_PRESS) &&
aQEvent->isAutoRepeat();
aEvent.time = 0;
if (sAltGrModifier) {