wasm: fix error in 'cut' synthesized key
Change-Id: Idca32c8cedb60563f8f1054d6634ab0411c07d9b Reviewed-by: Piotr Wierciński <piotr.wiercinski@qt.io> Reviewed-by: Mikołaj Boc <Mikolaj.Boc@qt.io> (cherry picked from commit f3951eb5d0e7b11adfe18491a77b216fa412e5e6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
8737178d53
commit
359ebe5720
@ -50,7 +50,7 @@ static void qClipboardCutTo(val event)
|
||||
if (!QWasmIntegration::get()->getWasmClipboard()->hasClipboardApi()) {
|
||||
// Send synthetic Ctrl+X to make the app cut data to Qt's clipboard
|
||||
QWindowSystemInterface::handleKeyEvent(
|
||||
0, QEvent::KeyPress, Qt::Key_C, Qt::ControlModifier, "X");
|
||||
0, QEvent::KeyPress, Qt::Key_X, Qt::ControlModifier, "X");
|
||||
}
|
||||
|
||||
commonCopyEvent(event);
|
||||
|
Loading…
x
Reference in New Issue
Block a user