KeyEvent.Modifiers Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the state of the modifier keys.
public Android.Views.MetaKeyStates Modifiers { [Android.Runtime.Register("getModifiers", "()I", "")] get; }
[<get: Android.Runtime.Register("getModifiers", "()I", "")>]
member this.Modifiers : Android.Views.MetaKeyStates
Property Value
An integer in which each bit set to 1 represents a pressed modifier key.
- Attributes
Remarks
Returns the state of the modifier keys.
For the purposes of this function, #KEYCODE_CAPS_LOCK
, #KEYCODE_SCROLL_LOCK
, and #KEYCODE_NUM_LOCK
are not considered modifier keys. Consequently, this function specifically masks out #META_CAPS_LOCK_ON
, #META_SCROLL_LOCK_ON
and #META_NUM_LOCK_ON
.
The value returned consists of the meta state (from #getMetaState
) normalized using #normalizeMetaState(int)
and then masked with #getModifierMetaStateMask
so that only valid modifier bits are retained.
Java documentation for android.view.KeyEvent.getModifiers()
.
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.