Webview.acceleratorkeys
Determines whether Webview-specific accelerator keys are enabled :
Ctrl-FandF3for Find on PageCtrl-Pfor PrintCtrl-RandF5for ReloadCtrl-PlusandCtrl-Minusfor zoomingCtrl-Shift-CandF12for DevTools- Special keys for browser functions, such as Back, Forward, and Search
Home,End,Page Up, andPage Down- Clipboard functions
Ctrl-X,Ctrl-C,Ctrl-V Ctrl-Afor Select AllCtrl-Zfor Undo
Example
--! luart-extensions
import ui
require "webview"
-- create a simple window
local win = ui.Window("Webview.acceleratorkeys sample", 600, 300)
local Webview = ui.Webview(win, { url = "https://www.google.com" })
Webview.align = "all"
function Webview:onReady()
-- Disable Webview accelerator-keys
Webview.acceleratorkeys = false
end
await win:showasync()