Udostępnij za pośrednictwem


KeyEvent.HasNoModifiers Property

Definition

Returns true if no modifier keys are pressed.

public bool HasNoModifiers { [Android.Runtime.Register("hasNoModifiers", "()Z", "")] get; }
[<get: Android.Runtime.Register("hasNoModifiers", "()Z", "")>]
member this.HasNoModifiers : bool

Property Value

True if no modifier keys are pressed.

Attributes

Remarks

Returns true if no modifier keys are pressed.

For the purposes of this function, #KEYCODE_CAPS_LOCK, #KEYCODE_SCROLL_LOCK, and #KEYCODE_NUM_LOCK are not considered modifier keys. Consequently, this function ignores #META_CAPS_LOCK_ON, #META_SCROLL_LOCK_ON and #META_NUM_LOCK_ON.

The meta state is normalized prior to comparison using #normalizeMetaState(int).

Java documentation for android.view.KeyEvent.hasNoModifiers().

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

See also