add on focus change
This commit is contained in:
@@ -11,7 +11,9 @@ void DoricInputBridge::onTextChange(QString pointer, QString text) {
|
||||
inputNode->onTextChange(text);
|
||||
}
|
||||
|
||||
void DoricInputBridge::onFocusChange(QString pointer) {
|
||||
void DoricInputBridge::onFocusChange(QString pointer, bool hasFocus) {
|
||||
QObject *object = (QObject *)(pointer.toULongLong());
|
||||
DoricInputNode *inputNode = dynamic_cast<DoricInputNode *>(object);
|
||||
|
||||
inputNode->onFocusChange(hasFocus);
|
||||
}
|
||||
|
@@ -15,7 +15,7 @@ public:
|
||||
void onTextChange(QString pointer, QString text);
|
||||
|
||||
Q_INVOKABLE
|
||||
void onFocusChange(QString pointer);
|
||||
void onFocusChange(QString pointer, bool hasFocus);
|
||||
signals:
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user