add on focus change
This commit is contained in:
@@ -64,3 +64,11 @@ void DoricInputNode::onTextChange(QString text) {
|
||||
callJSResponse(onTextChangeId, args);
|
||||
}
|
||||
}
|
||||
|
||||
void DoricInputNode::onFocusChange(bool hasFocus) {
|
||||
if (!onFocusChangeId.isEmpty()) {
|
||||
QVariantList args;
|
||||
args.append(hasFocus);
|
||||
callJSResponse(onFocusChangeId, args);
|
||||
}
|
||||
}
|
||||
|
@@ -20,6 +20,8 @@ public:
|
||||
QSizeF sizeThatFits(QSizeF size);
|
||||
|
||||
void onTextChange(QString text);
|
||||
|
||||
void onFocusChange(bool hasFocus);
|
||||
};
|
||||
|
||||
#endif // DORICINPUTNODE_H
|
||||
|
Reference in New Issue
Block a user