Documentation for this section has not yet been entered.
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.