winrt: Fix text value for key release events
The text member was never filled and thus was not set in onKeyUp. Change-Id: I0d0094745c385e0942635da643d863868b010c2a Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
This commit is contained in:
parent
4bfb464570
commit
eb77a24faa
@ -1065,7 +1065,8 @@ HRESULT QWinRTScreen::onCharacterReceived(ICoreWindow *, ICharacterReceivedEvent
|
|||||||
const Qt::KeyboardModifiers modifiers = keyboardModifiers();
|
const Qt::KeyboardModifiers modifiers = keyboardModifiers();
|
||||||
const Qt::Key key = qKeyFromCode(keyCode, modifiers);
|
const Qt::Key key = qKeyFromCode(keyCode, modifiers);
|
||||||
const QString text = QChar(keyCode);
|
const QString text = QChar(keyCode);
|
||||||
const KeyInfo info = d->activeKeys.value(key);
|
KeyInfo &info = d->activeKeys[key];
|
||||||
|
info.text = text;
|
||||||
QWindowSystemInterface::handleExtendedKeyEvent(
|
QWindowSystemInterface::handleExtendedKeyEvent(
|
||||||
topWindow(),
|
topWindow(),
|
||||||
QEvent::KeyPress,
|
QEvent::KeyPress,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user