:wasm Fix not possible to type tab character in TextEdit
qinputcontrol refused to accept the character since text part of key was empty This caused the tabkey to always switch focus instead Fixes: QTBUG-12423 Change-Id: I9ea7f02831cc88479b4e15d25eac278547f6f711 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
parent
92cc21b389
commit
e794894ece
@ -113,6 +113,9 @@ KeyEvent::KeyEvent(EventType type, emscripten::val event) : Event(type, event)
|
||||
text = QString::fromUtf8(webKey);
|
||||
if (text.size() > 1)
|
||||
text.clear();
|
||||
|
||||
if (key == Qt::Key_Tab)
|
||||
text = "\t";
|
||||
}
|
||||
|
||||
KeyEvent::~KeyEvent() = default;
|
||||
|
Loading…
x
Reference in New Issue
Block a user