void CCEGLView::setIMEKeyboardState(bool bOpen) { if (bOpen) showKeyboard(); else hideKeyboard(); }
//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); }
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; }
void rkFrame::recvKeyCode(const QString &keyCode) { if (keyCode == "Hide") { hideKeyboard(); } }
void QBBVirtualKeyboard::notifyClientActiveStateChange(bool active) { if (!active) hideKeyboard(); }
bool CCtrlEdit::onTextFieldDetachWithIME(CCTextFieldTTF * pSender) { hideKeyboard(); return false; }
void appl::TextViewer::onLostFocus() { hideKeyboard(); APPL_INFO("Focus - out"); markToRedraw(); }