android.text.method
Class BaseKeyListener
java.lang.Object
android.text.method.MetaKeyKeyListener
android.text.method.BaseKeyListener
- All Implemented Interfaces:
- KeyListener
- Direct Known Subclasses:
- MultiTapKeyListener, NumberKeyListener, QwertyKeyListener, TextKeyListener
public abstract class BaseKeyListener
- extends MetaKeyKeyListener
- implements KeyListener
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OLD_SEL_START
static final Object OLD_SEL_START
BaseKeyListener
public BaseKeyListener()
backspace
public boolean backspace(View view,
Editable content,
int keyCode,
KeyEvent event)
- Performs the action that happens when you press the DEL key in
a TextView. If there is a selection, deletes the selection;
otherwise, DEL alone deletes the character before the cursor,
if any;
ALT+DEL deletes everything on the line the cursor is on.
- Returns:
- true if anything was deleted; false otherwise.
onKeyDown
public boolean onKeyDown(View view,
Editable content,
int keyCode,
KeyEvent event)
- Description copied from class:
MetaKeyKeyListener
- Handles presses of the meta keys.
- Specified by:
onKeyDown in interface KeyListener- Overrides:
onKeyDown in class MetaKeyKeyListener
Please submit a feedback, bug or feature