Java Code Examples for android.text.method.MetaKeyKeyListener#handleKeyUp()
The following examples show how to use
android.text.method.MetaKeyKeyListener#handleKeyUp() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TerminalKeyboard.java From java-n-IDE-for-Android with Apache License 2.0 | 6 votes |
/** * Use this to monitor key events being delivered to the application. * We get first crack at them, and can either resume them or let them * continue to the app. */ @Override public boolean onKeyUp(int keyCode, KeyEvent event) { // Log.v("SpartacusRex","SOFT : onKeyUp "+keyCode +" "+event.getMetaState()); // If we want to do transformations on text being entered with a hard // keyboard, we need to process the up events to update the meta key // state we are tracking. if (PROCESS_HARD_KEYS) { if (mPredictionOn) { mMetaState = MetaKeyKeyListener.handleKeyUp(mMetaState, keyCode, event); } } return super.onKeyUp(keyCode, event); }
Example 2
Source File: SoftKeyboard.java From AndroidKeyboard with GNU General Public License v3.0 | 5 votes |
/** * Use this to monitor key events being delivered to the application. * We get first crack at them, and can either resume them or let them * continue to the app. */ @Override public boolean onKeyUp(int keyCode, KeyEvent event) { // If we want to do transformations on text being entered with a hard // keyboard, we need to process the up events to update the meta key // state we are tracking. if (PROCESS_HARD_KEYS) { if (mPredictionOn) { mMetaState = MetaKeyKeyListener.handleKeyUp(mMetaState, keyCode, event); } } return super.onKeyUp(keyCode, event); }
Example 3
Source File: UnicodeIME.java From io.appium.settings with Apache License 2.0 | 5 votes |
@Override public boolean onKeyUp(int keyCode, KeyEvent event) { Log.i(TAG, String.format("onKeyUp (keyCode='%s', event.keyCode='%s', metaState='%s')", keyCode, event.getKeyCode(), event.getMetaState())); metaState = MetaKeyKeyListener.handleKeyUp(metaState, keyCode, event); return super.onKeyUp(keyCode, event); }
Example 4
Source File: AppiumIME.java From io.appium.settings with Apache License 2.0 | 5 votes |
@Override public boolean onKeyUp(int keyCode, KeyEvent event) { Log.i(TAG, String.format("onKeyUp (keyCode='%s', event.keyCode='%s', metaState='%s')", keyCode, event.getKeyCode(), event.getMetaState())); metaState = MetaKeyKeyListener.handleKeyUp(metaState, keyCode, event); return super.onKeyUp(keyCode, event); }
Example 5
Source File: Utf7ImeService.java From android-unicode with MIT License | 4 votes |
@Override public boolean onKeyUp(int keyCode, KeyEvent event) { // Log.d(TAG, String.format("onKeyUp (%x)", keyCode)); mMetaState = MetaKeyKeyListener.handleKeyUp(mMetaState, keyCode, event); return super.onKeyUp(keyCode, event); }
Example 6
Source File: UnicodeIME.java From io.appium.android.ime with Apache License 2.0 | 4 votes |
@Override public boolean onKeyUp(int keyCode, KeyEvent event) { Log.i(TAG, "onKeyUp (keyCode='" + keyCode + "', event.keyCode='" + event.getKeyCode() + "', metaState='" + event.getMetaState() + "')"); metaState = MetaKeyKeyListener.handleKeyUp(metaState, keyCode, event); return super.onKeyUp(keyCode, event); }
Example 7
Source File: Utf7ImeService.java From uiautomator-unicode-input-helper with Apache License 2.0 | 4 votes |
@Override public boolean onKeyUp(int keyCode, KeyEvent event) { // Log.d(TAG, String.format("onKeyUp (%x)", keyCode)); mMetaState = MetaKeyKeyListener.handleKeyUp(mMetaState, keyCode, event); return super.onKeyUp(keyCode, event); }