public interface CefKeyboardHandler
限定符和类型 | 接口和说明 |
---|---|
static class |
CefKeyboardHandler.CefKeyEvent
Structure representing keyboard event information.
(表示键盘事件信息的结构。)
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
onKeyEvent(CefBrowser browser, CefKeyboardHandler.CefKeyEvent event)
Called after the renderer and JavaScript in the page has had a chance to handle the event.
(在页面中的渲染器和JavaScript有机会处理该事件之后调用。)
|
boolean |
onPreKeyEvent(CefBrowser browser, CefKeyboardHandler.CefKeyEvent event, BoolRef is_keyboard_shortcut)
Called before a keyboard event is sent to the renderer.
(在键盘事件发送到渲染器之前调用。)
|
boolean onKeyEvent(CefBrowser browser, CefKeyboardHandler.CefKeyEvent event)
browser
- the corresponding browser.
(-相应的浏览器。)
event
- contains information about the keyboard event.
(-包含有关键盘事件的信息。)
boolean onPreKeyEvent(CefBrowser browser, CefKeyboardHandler.CefKeyEvent event, BoolRef is_keyboard_shortcut)
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.
(-如果事件将作为键盘快捷键在OnKeyEvent()中处理,则设置为true并返回false。)