Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
4.8.5
-
None
Description
Wrong get KEY_PAD modifier when using qws
Here is solution:
before:
bool QETWidget::translateKeyEvent(const QWSKeyEvent event, bool grab) / grab is used in the #ifdef */ { int code = -1; //### Qt assumes keyboard state is state before, while QWS uses state after the event static Qt::KeyboardModifiers oldstate; Qt::KeyboardModifiers state = oldstate; oldstate = event->simpleData.modifiers;
after:
// FIXME static Qt::KeyboardModifiers oldstate; oldstate = event->simpleData.modifiers; <<------------------ it helps Qt::KeyboardModifiers state = oldstate;