bool filtered = false;
if (inputContext) {
- QKeyEvent event(type, qtcode, modifiers, string, isAutoRepeat);
+ QKeyEvent event(type, qtcode, modifiers, code, sym, state, string.left(count), isAutoRepeat, count);
event.setTimestamp(time);
filtered = inputContext->filterEvent(&event);
}
}
if (!filtered && inputContext) {
- QKeyEvent event(QEvent::KeyPress, qtcode, modifiers, string, isAutoRepeat);
+ QKeyEvent event(QEvent::KeyPress, qtcode, modifiers, code, sym, state, string.left(count), isAutoRepeat, count);
event.setTimestamp(time);
filtered = inputContext->filterEvent(&event);
}