| java.lang.Object | ||
| ↳ | android.text.method.MetaKeyKeyListener | |
| ↳ | android.text.method.BaseKeyListener | |
Known Direct Subclasses
|
Known Indirect Subclasses
|
Abstract base class for key listeners.
Provides a basic foundation for entering and editing text.
Subclasses should override onKeyDown(View, Editable, int, KeyEvent) and onKeyUp(View, Editable, int, KeyEvent) to insert
characters as keys are pressed.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.text.method.MetaKeyKeyListener
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Performs the action that happens when you press the
KEYCODE_DEL key in
a TextView. | |||||||||||
Performs the action that happens when you press the
KEYCODE_FORWARD_DEL
key in a TextView. | |||||||||||
Handles presses of the meta keys.
| |||||||||||
Base implementation handles ACTION_MULTIPLE KEYCODE_UNKNOWN by inserting
the event's text into the content.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.text.method.MetaKeyKeyListener
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.text.method.KeyListener
| |||||||||||
Performs the action that happens when you press the KEYCODE_DEL key in
a TextView. If there is a selection, deletes the selection; otherwise,
deletes the character before the cursor, if any; ALT+DEL deletes everything on
the line the cursor is on.
Performs the action that happens when you press the KEYCODE_FORWARD_DEL
key in a TextView. If there is a selection, deletes the selection; otherwise,
deletes the character before the cursor, if any; ALT+FORWARD_DEL deletes everything on
the line the cursor is on.
Handles presses of the meta keys.
Base implementation handles ACTION_MULTIPLE KEYCODE_UNKNOWN by inserting the event's text into the content.