示例#1
0
void CCEGLView::setIMEKeyboardState(bool bOpen)
{
	if (bOpen)
		showKeyboard();
	else
		hideKeyboard();
}
示例#2
0
//QList<UBKeyboardPalette*> UBKeyboardPalette::instances;
void UBKeyboardPalette::init()
{
    m_isVisible = false;
    setVisible(false);

    setKeyButtonSize(UBSettings::settings()->boardKeyboardPaletteKeyBtnSize->get().toString());

    connect(this, SIGNAL(keyboardActivated(bool)), this, SLOT(onActivated(bool)));
    connect(UBSettings::settings()->boardKeyboardPaletteKeyBtnSize, SIGNAL(changed(QVariant)), this, SLOT(keyboardPaletteButtonSizeChanged(QVariant)));
    connect(UBApplication::mainWindow->actionVirtualKeyboard, SIGNAL(triggered(bool)), this, SLOT(showKeyboard(bool)));
    connect(this, SIGNAL(closed()), this, SLOT(hideKeyboard()));

    //------------------------------//

    UBPlatformUtils::setWindowNonActivableFlag(this, true);
}
示例#3
0
文件: CtrlEdit.cpp 项目: twkevin/ddz
bool CCtrlEdit::ccTouchBegan(CCTouch *pTouch, CCEvent *pEvent)
{
    if (!isVisible())
	{
		return false;
	}
    
	if (GetHandle() != g_objUIMgr.GetTouchHandleObj())
	{
		hideKeyboard();

		return false;
	}
    
	m_beginPos = pTouch->getLocation();    
	return true;
}
示例#4
0
void rkFrame::recvKeyCode(const QString &keyCode)
{
	if (keyCode == "Hide") {
		hideKeyboard();
	}
}
示例#5
0
void QBBVirtualKeyboard::notifyClientActiveStateChange(bool active)
{
    if (!active)
        hideKeyboard();
}
示例#6
0
文件: CtrlEdit.cpp 项目: twkevin/ddz
bool CCtrlEdit::onTextFieldDetachWithIME(CCTextFieldTTF * pSender)
{
	hideKeyboard();

	return false;
}
示例#7
0
void appl::TextViewer::onLostFocus() {
	hideKeyboard();
	APPL_INFO("Focus - out");
	markToRedraw();
}