Webview.acceleratorkeys read/write property
Determines whether Webview-specific accelerator keys are enabled :
Ctrl-F
andF3
for Find on PageCtrl-P
for PrintCtrl-R
andF5
for ReloadCtrl-Plus
andCtrl-Minus
for zoomingCtrl-Shift-C
andF12
for 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-A
for Select AllCtrl-Z
for Undo
Example
local ui = require "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
ui.run(win):wait()