KeyDownHandler
,
KeyUpHandler
and/or
KeyPressHandler
instead@Deprecated public interface KeyboardListener extends EventListener
Modifier and Type | Field and Description |
---|---|
static int |
KEY_ALT
Deprecated.
use
KeyCodes.KEY_ALT
instead |
static int |
KEY_BACKSPACE
Deprecated.
use
KeyCodes.KEY_BACKSPACE
instead |
static int |
KEY_CTRL
Deprecated.
use
KeyCodes.KEY_CTRL
instead |
static int |
KEY_DELETE
Deprecated.
use
KeyCodes.KEY_DELETE
instead |
static int |
KEY_DOWN
Deprecated.
use
KeyCodes.KEY_DOWN
instead |
static int |
KEY_END
Deprecated.
use
KeyCodes.KEY_END
instead |
static int |
KEY_ENTER
Deprecated.
use
KeyCodes.KEY_ENTER
instead |
static int |
KEY_ESCAPE
Deprecated.
use
KeyCodes.KEY_ESCAPE
instead |
static int |
KEY_HOME
Deprecated.
use
KeyCodes.KEY_HOME
instead |
static int |
KEY_LEFT
Deprecated.
use
KeyCodes.KEY_LEFT
instead |
static int |
KEY_PAGEDOWN
Deprecated.
use
KeyCodes.KEY_PAGEDOWN
instead |
static int |
KEY_PAGEUP
Deprecated.
use
KeyCodes.KEY_PAGEUP
instead |
static int |
KEY_RIGHT
Deprecated.
use
KeyCodes.KEY_RIGHT
instead |
static int |
KEY_SHIFT
Deprecated.
use
KeyCodes.KEY_SHIFT
instead |
static int |
KEY_TAB
Deprecated.
use
KeyCodes.KEY_TAB
instead |
static int |
KEY_UP
Deprecated.
use
KeyCodes.KEY_UP
instead |
static int |
MODIFIER_ALT
Deprecated.
use
KeyEvent.isAltKeyDown()
instead |
static int |
MODIFIER_CTRL
Deprecated.
use
KeyEvent.isControlKeyDown()
instead |
static int |
MODIFIER_META
Deprecated.
use
KeyEvent.isMetaKeyDown()
instead |
static int |
MODIFIER_SHIFT
Deprecated.
use
KeyEvent.isShiftKeyDown()
instead |
Modifier and Type | Method and Description |
---|---|
void |
onKeyDown(Widget sender,
char keyCode,
int modifiers)
Deprecated.
|
void |
onKeyPress(Widget sender,
char keyCode,
int modifiers)
Deprecated.
|
void |
onKeyUp(Widget sender,
char keyCode,
int modifiers)
Deprecated.
|
@Deprecated static final int KEY_ALT
KeyCodes.KEY_ALT
instead@Deprecated static final int KEY_BACKSPACE
KeyCodes.KEY_BACKSPACE
instead@Deprecated static final int KEY_CTRL
KeyCodes.KEY_CTRL
instead@Deprecated static final int KEY_DELETE
KeyCodes.KEY_DELETE
instead@Deprecated static final int KEY_DOWN
KeyCodes.KEY_DOWN
instead@Deprecated static final int KEY_END
KeyCodes.KEY_END
instead@Deprecated static final int KEY_ENTER
KeyCodes.KEY_ENTER
instead@Deprecated static final int KEY_ESCAPE
KeyCodes.KEY_ESCAPE
instead@Deprecated static final int KEY_HOME
KeyCodes.KEY_HOME
instead@Deprecated static final int KEY_LEFT
KeyCodes.KEY_LEFT
instead@Deprecated static final int KEY_PAGEDOWN
KeyCodes.KEY_PAGEDOWN
instead@Deprecated static final int KEY_PAGEUP
KeyCodes.KEY_PAGEUP
instead@Deprecated static final int KEY_RIGHT
KeyCodes.KEY_RIGHT
instead@Deprecated static final int KEY_SHIFT
KeyCodes.KEY_SHIFT
instead@Deprecated static final int KEY_TAB
KeyCodes.KEY_TAB
instead@Deprecated static final int KEY_UP
KeyCodes.KEY_UP
instead@Deprecated static final int MODIFIER_ALT
KeyEvent.isAltKeyDown()
instead@Deprecated static final int MODIFIER_CTRL
KeyEvent.isControlKeyDown()
instead@Deprecated static final int MODIFIER_META
KeyEvent.isMetaKeyDown()
instead@Deprecated static final int MODIFIER_SHIFT
KeyEvent.isShiftKeyDown()
instead@Deprecated void onKeyDown(Widget sender, char keyCode, int modifiers)
KeyDownHandler.onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent)
insteadsender
- the widget that was focused when the event occurred.keyCode
- the physical key that was depressed. Constants for this
value are defined in this interface with the KEY prefix.modifiers
- the modifier keys pressed at when the event occurred. This
value is a combination of the bits defined by
MODIFIER_SHIFT
,
MODIFIER_CTRL
, and
MODIFIER_ALT
@Deprecated void onKeyPress(Widget sender, char keyCode, int modifiers)
KeyPressHandler.onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent)
instead
It should be noted that many browsers do not generate keypress events for
non-printing keyCode values, such as KEY_ENTER
or
arrow keys. These keyCodes can be reliably captured either with
onKeyDown(Widget, char, int)
or
onKeyUp(Widget, char, int)
.
sender
- the widget that was focused when the event occurred.keyCode
- the Unicode character that was generated by the keyboard
action.modifiers
- the modifier keys pressed at when the event occurred. This
value is a combination of the bits defined by
MODIFIER_SHIFT
,
MODIFIER_CTRL
, and
MODIFIER_ALT
@Deprecated void onKeyUp(Widget sender, char keyCode, int modifiers)
KeyUpHandler.onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent)
insteadsender
- the widget that was focused when the event occurred.keyCode
- the physical key that was released. Constants for this value
are defined in this interface with the KEY prefix.modifiers
- the modifier keys pressed at when the event occurred. This
value is a combination of the bits defined by
MODIFIER_SHIFT
,
MODIFIER_CTRL
, and
MODIFIER_ALT
Copyright © 2018. All rights reserved.