List of usage examples for android.view KeyEvent META_META_LEFT_ON
int META_META_LEFT_ON
To view the source code for android.view KeyEvent META_META_LEFT_ON.
Click Source Link
This mask is used to check whether the left META meta key is pressed.
From source file:org.distantshoresmedia.keyboard.LatinIME.java
private int getMetaState(boolean shifted) { int meta = 0; if (shifted)/*from w w w . j a v a 2 s.c o m*/ meta |= KeyEvent.META_SHIFT_ON | KeyEvent.META_SHIFT_LEFT_ON; if (mModCtrl) meta |= KeyEvent.META_CTRL_ON | KeyEvent.META_CTRL_LEFT_ON; if (mModAlt) meta |= KeyEvent.META_ALT_ON | KeyEvent.META_ALT_LEFT_ON; if (mModMeta) meta |= KeyEvent.META_META_ON | KeyEvent.META_META_LEFT_ON; return meta; }
From source file:org.distantshoresmedia.keyboard.LatinIME.java
private void sendMetaKey(InputConnection ic, boolean isDown, boolean chording) { if (chording && delayChordingMetaModifier()) return;/* w w w .j a v a2 s .c om*/ int key = sKeyboardSettings.chordingMetaKey; if (key == 0) key = KeyEvent.KEYCODE_META_LEFT; int meta = KeyEvent.META_META_ON | KeyEvent.META_META_LEFT_ON; if (isDown) { sendKeyDown(ic, key, meta); } else { sendKeyUp(ic, key, meta); } }