Build 1.0_r1(from source)

android.text.method
Class BaseKeyListener

java.lang.Object
  extended by android.text.method.MetaKeyKeyListener
      extended by android.text.method.BaseKeyListener
All Implemented Interfaces:
KeyListener
Direct Known Subclasses:
MultiTapKeyListener, NumberKeyListener, QwertyKeyListener, TextKeyListener

public abstract class BaseKeyListener
extends MetaKeyKeyListener
implements KeyListener


Field Summary
(package private) static Object OLD_SEL_START
           
 
Fields inherited from class android.text.method.MetaKeyKeyListener
META_ALT_LOCKED, META_ALT_ON, META_CAP_LOCKED, META_SHIFT_ON, META_SYM_LOCKED, META_SYM_ON
 
Constructor Summary
BaseKeyListener()
           
 
Method Summary
 boolean backspace(View view, Editable content, int keyCode, KeyEvent event)
          Performs the action that happens when you press the DEL key in a TextView.
 boolean onKeyDown(View view, Editable content, int keyCode, KeyEvent event)
          Handles presses of the meta keys.
 
Methods inherited from class android.text.method.MetaKeyKeyListener
adjustMetaAfterKeypress, getMetaState, getMetaState, isMetaTracker, onKeyUp, resetLockedMeta, resetMetaState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface android.text.method.KeyListener
onKeyUp
 

Field Detail

OLD_SEL_START

static final Object OLD_SEL_START
Constructor Detail

BaseKeyListener

public BaseKeyListener()
Method Detail

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

Build 1.0_r1(from source)

Please submit a feedback, bug or feature