onPreKeyEvent

abstract fun onPreKeyEvent(browser: CefBrowser, event: CefKeyboardHandler.CefKeyEvent, is_keyboard_shortcut: BoolRef): Boolean

Called before a keyboard event is sent to the renderer.

Return

true if the event was handled or false otherwise.

Parameters

browser

the corresponding browser.

event

contains information about the keyboard event.

is_keyboard_shortcut

set to true and return false, if the event will be handled in OnKeyEvent() as a keyboard shortcut.