Webview.acceleratorkeys read/write property


Determines whether Webview-specific accelerator keys are enabled :

  • Ctrl-F and F3 for Find on Page
  • Ctrl-P for Print
  • Ctrl-R and F5 for Reload
  • Ctrl-Plus and Ctrl-Minus for zooming
  • Ctrl-Shift-C and F12 for DevTools
  • Special keys for browser functions, such as Back, Forward, and Search
Please note that accelerator keys related to movement and text editing are not disabled :
  • Home, End,Page Up, and Page Down
  • Clipboard functions Ctrl-X, Ctrl-C, Ctrl-V
  • Ctrl-A for Select All
  • Ctrl-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, "https://www.google.com") Webview.align = "all" function Webview:onReady() -- Disable Webview accelerator-keys Webview.acceleratorkeys = false end ui.run(win):wait()