Example usage for android.view KeyEvent KEYCODE_META_LEFT

List of usage examples for android.view KeyEvent KEYCODE_META_LEFT

Introduction

In this page you can find the example usage for android.view KeyEvent KEYCODE_META_LEFT.

Prototype

int KEYCODE_META_LEFT

To view the source code for android.view KeyEvent KEYCODE_META_LEFT.

Click Source Link

Document

Key code constant: Left Meta modifier key.

Usage

From source file:org.distantshoresmedia.keyboard.LatinIME.java

private void sendMetaKey(InputConnection ic, boolean isDown, boolean chording) {
    if (chording && delayChordingMetaModifier())
        return;//from www  .  j  ava 2s.co  m

    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);
    }
}