Android.Views.KeyEvent.Modifiers Property
Returns the state of the modifier keys.

Syntax

[get: Android.Runtime.Register("getModifiers", "()I", "GetGetModifiersHandler")]
public MetaKeyStates Modifiers { get; }

See Also

KeyEvent.MetaState

Value

Documentation for this section has not yet been entered.

Remarks

Returns the state of the modifier keys.

For the purposes of this function, KeyEvent.KEYCODE_CAPS_LOCK, KeyEvent.KEYCODE_SCROLL_LOCK, and KeyEvent.KEYCODE_NUM_LOCK are not considered modifier keys. Consequently, this function specifically masks out KeyEvent.META_CAPS_LOCK_ON, KeyEvent.META_SCROLL_LOCK_ON and KeyEvent.META_NUM_LOCK_ON.

The value returned consists of the meta state (from KeyEvent.MetaState) normalized using KeyEvent.NormalizeMetaState(MetaKeyStates) and then masked with KeyEvent.ModifierMetaStateMask so that only valid modifier bits are retained.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 13