public abstract class CefKeyboardHandlerAdapter extends java.lang.Object implements CefKeyboardHandler
CefKeyboardHandler.CefKeyEvent
构造器和说明 |
---|
CefKeyboardHandlerAdapter() |
限定符和类型 | 方法和说明 |
---|---|
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.
(在键盘事件发送到渲染器之前调用。)
|
public boolean onKeyEvent(CefBrowser browser, CefKeyboardHandler.CefKeyEvent event)
CefKeyboardHandler
onKeyEvent
在接口中
CefKeyboardHandler
browser
- the corresponding browser.
(-相应的浏览器。)
event
- contains information about the keyboard event.
(-包含有关键盘事件的信息。)
public boolean onPreKeyEvent(CefBrowser browser, CefKeyboardHandler.CefKeyEvent event, BoolRef is_keyboard_shortcut)
CefKeyboardHandler
onPreKeyEvent
在接口中
CefKeyboardHandler
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。)