Android
android.text.method
public abstract class

android.text.method.BaseKeyListener

java.lang.Object
android.text.method.MetaKeyKeyListener
android.text.method.BaseKeyListener KeyListener
Known Direct Subclasses
Known Indirect Subclasses

Summary

Constants inherited from class android.text.method.MetaKeyKeyListener

Public Constructors

            BaseKeyListener()

Public Methods

          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
Methods inherited from class java.lang.Object
Methods inherited from interface android.text.method.KeyListener

Details

Public Constructors

public BaseKeyListener()

Public Methods

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.

public boolean onKeyDown(View view, Editable content, int keyCode, KeyEvent event)

Handles presses of the meta keys.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56