Package org.cef.handler
Class CefKeyboardHandlerAdapter
- java.lang.Object
-
- org.cef.handler.CefKeyboardHandlerAdapter
-
- All Implemented Interfaces:
CefKeyboardHandler
public abstract class CefKeyboardHandlerAdapter extends java.lang.Object implements CefKeyboardHandler
An abstract adapter class for receiving keyboard events. The methods in this class are empty. This class exists as convenience for creating handler objects.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.cef.handler.CefKeyboardHandler
CefKeyboardHandler.CefKeyEvent
-
-
Constructor Summary
Constructors Constructor Description CefKeyboardHandlerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanonKeyEvent(CefBrowser browser, CefKeyboardHandler.CefKeyEvent event)Called after the renderer and JavaScript in the page has had a chance to handle the event.booleanonPreKeyEvent(CefBrowser browser, CefKeyboardHandler.CefKeyEvent event, BoolRef is_keyboard_shortcut)Called before a keyboard event is sent to the renderer.
-
-
-
Method Detail
-
onPreKeyEvent
public boolean onPreKeyEvent(CefBrowser browser, CefKeyboardHandler.CefKeyEvent event, BoolRef is_keyboard_shortcut)
Description copied from interface:CefKeyboardHandlerCalled before a keyboard event is sent to the renderer.- Specified by:
onPreKeyEventin interfaceCefKeyboardHandler- 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.- Returns:
- true if the event was handled or false otherwise.
-
onKeyEvent
public boolean onKeyEvent(CefBrowser browser, CefKeyboardHandler.CefKeyEvent event)
Description copied from interface:CefKeyboardHandlerCalled after the renderer and JavaScript in the page has had a chance to handle the event.- Specified by:
onKeyEventin interfaceCefKeyboardHandler- Parameters:
browser- the corresponding browser.event- contains information about the keyboard event.- Returns:
- true if the keyboard event was handled or false otherwise.
-
-