List of usage examples for android.view KeyEvent META_CTRL_LEFT_ON
int META_CTRL_LEFT_ON
To view the source code for android.view KeyEvent META_CTRL_LEFT_ON.
Click Source Link
This mask is used to check whether the left CTRL meta key is pressed.
From source file:org.distantshoresmedia.keyboard.LatinIME.java
private int getMetaState(boolean shifted) { int meta = 0; if (shifted)// w w w . jav a2 s. co 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 sendCtrlKey(InputConnection ic, boolean isDown, boolean chording) { if (chording && delayChordingCtrlModifier()) return;/* www . j a va2s .co m*/ int key = sKeyboardSettings.chordingCtrlKey; if (key == 0) key = KeyEvent.KEYCODE_CTRL_LEFT; int meta = KeyEvent.META_CTRL_ON | KeyEvent.META_CTRL_LEFT_ON; if (isDown) { sendKeyDown(ic, key, meta); } else { sendKeyUp(ic, key, meta); } }