当前位置: 首页>>代码示例>>Java>>正文


Java MetaKeyKeyListener.handleKeyUp方法代码示例

本文整理汇总了Java中android.text.method.MetaKeyKeyListener.handleKeyUp方法的典型用法代码示例。如果您正苦于以下问题:Java MetaKeyKeyListener.handleKeyUp方法的具体用法?Java MetaKeyKeyListener.handleKeyUp怎么用?Java MetaKeyKeyListener.handleKeyUp使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在android.text.method.MetaKeyKeyListener的用法示例。


在下文中一共展示了MetaKeyKeyListener.handleKeyUp方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onKeyUp

import android.text.method.MetaKeyKeyListener; //导入方法依赖的package包/类
/**
     * 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);
    }
 
开发者ID:tranleduy2000,项目名称:javaide,代码行数:22,代码来源:TerminalKeyboard.java

示例2: onKeyUp

import android.text.method.MetaKeyKeyListener; //导入方法依赖的package包/类
/**
     * 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);
    }
 
开发者ID:dyne,项目名称:ZShaolin,代码行数:21,代码来源:TerminalKeyboard.java

示例3: onKeyUp

import android.text.method.MetaKeyKeyListener; //导入方法依赖的package包/类
/**
 * 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);
}
 
开发者ID:iamironrabbit,项目名称:tibetan-keyboard,代码行数:19,代码来源:SoftKeyboard.java

示例4: onKeyUp

import android.text.method.MetaKeyKeyListener; //导入方法依赖的package包/类
/**
 * 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);
}
 
开发者ID:accentype,项目名称:accentype-android,代码行数:19,代码来源:SoftKeyboard.java

示例5: onKeyUp

import android.text.method.MetaKeyKeyListener; //导入方法依赖的package包/类
@Override
public boolean onKeyUp(int keyCode, KeyEvent event)
{
    if (!m_started)
        return false;
    m_metaState = MetaKeyKeyListener.handleKeyUp(m_metaState, keyCode, event);
    QtApplication.keyUp(keyCode, event.getUnicodeChar(), event.getMetaState());
    return true;
}
 
开发者ID:harmattan,项目名称:uds,代码行数:10,代码来源:QtActivity.java

示例6: onKeyUp

import android.text.method.MetaKeyKeyListener; //导入方法依赖的package包/类
/**
 * 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);
}
 
开发者ID:dioh,项目名称:animal,代码行数:20,代码来源:AnimalKeyboard.java

示例7: onKeyUp

import android.text.method.MetaKeyKeyListener; //导入方法依赖的package包/类
@Override
public boolean onKeyUp(int keyCode, KeyEvent event) {
	if (PROCESS_HARD_KEYS) {
		if (PredictionOn) {
			MetaState = MetaKeyKeyListener.handleKeyUp(MetaState, keyCode, event);
		}
	}

	return super.onKeyUp(keyCode, event);
}
 
开发者ID:ghwoni13,项目名称:BAGO_TS,代码行数:11,代码来源:KeyboardService.java

示例8: onKeyUp

import android.text.method.MetaKeyKeyListener; //导入方法依赖的package包/类
@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);
}
 
开发者ID:macacajs,项目名称:android-unicode,代码行数:7,代码来源:Utf7ImeService.java

示例9: onKeyUp

import android.text.method.MetaKeyKeyListener; //导入方法依赖的package包/类
@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);
}
 
开发者ID:appium,项目名称:io.appium.android.ime,代码行数:7,代码来源:UnicodeIME.java


注:本文中的android.text.method.MetaKeyKeyListener.handleKeyUp方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。