From f3951eb5d0e7b11adfe18491a77b216fa412e5e6 Mon Sep 17 00:00:00 2001 From: Lorn Potter Date: Mon, 20 Feb 2023 15:09:51 +1000 Subject: [PATCH] wasm: fix error in 'cut' synthesized key MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pick-to: 6.5 Change-Id: Idca32c8cedb60563f8f1054d6634ab0411c07d9b Reviewed-by: Piotr Wierciński Reviewed-by: Mikołaj Boc --- src/plugins/platforms/wasm/qwasmclipboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/wasm/qwasmclipboard.cpp b/src/plugins/platforms/wasm/qwasmclipboard.cpp index 1ea730f66dd..c33f39d4707 100644 --- a/src/plugins/platforms/wasm/qwasmclipboard.cpp +++ b/src/plugins/platforms/wasm/qwasmclipboard.cpp @@ -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);