Package org.cef.handler
Class CefKeyboardHandler.CefKeyEvent
- java.lang.Object
-
- org.cef.handler.CefKeyboardHandler.CefKeyEvent
-
- Enclosing interface:
- CefKeyboardHandler
public static final class CefKeyboardHandler.CefKeyEvent extends java.lang.ObjectStructure representing keyboard event information.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCefKeyboardHandler.CefKeyEvent.EventTypeKey event types.
-
Field Summary
Fields Modifier and Type Field Description charcharacterThe character generated by the keystroke.booleanfocus_on_editable_fieldTrue if the focus is currently on an editable field on the page.booleanis_system_keyIndicates whether the event is considered a "system key" event (see http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for details).intmodifiersBit flags describing any pressed modifier keys.intnative_key_codeThe actual key code genenerated by the platform.CefKeyboardHandler.CefKeyEvent.EventTypetypeThe type of keyboard event.charunmodified_characterSame as character but unmodified by any concurrently-held modifiers (except shift).intwindows_key_codeThe Windows key code for the key event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()
-
-
-
Field Detail
-
type
public final CefKeyboardHandler.CefKeyEvent.EventType type
The type of keyboard event.
-
modifiers
public final int modifiers
Bit flags describing any pressed modifier keys.- See Also:
for values.
-
windows_key_code
public final int windows_key_code
The Windows key code for the key event. This value is used by the DOM specification. Sometimes it comes directly from the event (i.e. on Windows) and sometimes it's determined using a mapping function. See WebCore/platform/chromium/KeyboardCodes.h for the list of values.
-
native_key_code
public final int native_key_code
The actual key code genenerated by the platform.
-
is_system_key
public final boolean is_system_key
Indicates whether the event is considered a "system key" event (see http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for details). This value will always be false on non-Windows platforms.
-
character
public final char character
The character generated by the keystroke.
-
unmodified_character
public final char unmodified_character
Same as character but unmodified by any concurrently-held modifiers (except shift). This is useful for working out shortcut keys.
-
focus_on_editable_field
public final boolean focus_on_editable_field
True if the focus is currently on an editable field on the page. This is useful for determining if standard key events should be intercepted.
-
-