Udostępnij za pośrednictwem


KeyEventFlags Enum

Definition

Enumerates values returned by several types and taken as a parameter of several methods of KeyEvent.

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum KeyEventFlags
[<System.Flags>]
type KeyEventFlags = 
Inheritance
KeyEventFlags
Attributes

Fields

Name Value Description
WokeHere 1

This mask is set if the device woke because of this key event.

SoftKeyboard 2

This mask is set if the key event was generated by a software keyboard.

KeepTouchMode 4

This mask is set if we don't want the key event to cause us to leave touch mode.

FromSystem 8

This mask is set if an event was known to come from a trusted part of the system.

EditorAction 16

This mask is used for compatibility, to identify enter keys that are coming from an IME whose enter key has been auto-labelled "next" or "done".

Canceled 32

When associated with up key events, this indicates that the key press has been canceled.

VirtualHardKey 64

This key event was generated by a virtual (on-screen) hard key area. Typically this is an area of the touchscreen, outside of the regular display, dedicated to "hardware" buttons.

LongPress 128

This flag is set for the first key repeat that occurs after the long press timeout.

CanceledLongPress 256

Set when a key event has Canceledset because a long press action was executed while it was down.

Tracking 512

Set for Upwhen this event's key code is still being tracked from its initial down.

Fallback 1024

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to