From fd00eb3b9a515a98ad4e522559c2213f927df402 Mon Sep 17 00:00:00 2001 From: Preyam Rao Date: Sat, 30 May 2026 05:28:37 +0530 Subject: [PATCH] fix: enable standard edit shortcuts in web view --- main.qml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/main.qml b/main.qml index 6199cd19..03bdedc8 100644 --- a/main.qml +++ b/main.qml @@ -504,10 +504,30 @@ ApplicationWindow { } } + Action { + shortcut: StandardKey.Undo + onTriggered: webView.triggerWebAction(WebEngineView.Undo) + } + Action { + shortcut: StandardKey.Redo + onTriggered: webView.triggerWebAction(WebEngineView.Redo) + } + Action { + shortcut: StandardKey.Cut + onTriggered: webView.triggerWebAction(WebEngineView.Cut) + } + Action { + shortcut: StandardKey.Copy + onTriggered: webView.triggerWebAction(WebEngineView.Copy) + } Action { shortcut: StandardKey.Paste onTriggered: webView.triggerWebAction(WebEngineView.Paste) } + Action { + shortcut: StandardKey.SelectAll + onTriggered: webView.triggerWebAction(WebEngineView.SelectAll) + } DropArea { anchors.fill: parent