/**
* 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);
}
TerminalKeyboard.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:ZShaolin
作者:
评论列表
文章目录