engine->makeClickedItemResult(command, timestamp, provider);
engine->invokeOutputResultCallback(provider.jsonToString());
- if (command != nullptr) {
- _I("[VoiceTouchEngine] Command. object ID(%s)", command->objectId.c_str());
- engine->makeTouchModality(*command, timestamp);
- engine->invokeOutputModalityCallback(&engine->__touchModality);
+ if (command == nullptr) {
+ return ECORE_CALLBACK_CANCEL;
}
+ if (engine->__currentMode == VOICE_TOUCH_MODE_GRID && engine->__currentGridInfo.currentStep == 0) {
+ _I("[VoiceTouchEngine] Grid first step. Skip modality request");
+ return ECORE_CALLBACK_CANCEL;
+ }
+
+ _I("[VoiceTouchEngine] Command. object ID(%s)", command->objectId.c_str());
+ engine->makeTouchModality(*command, timestamp);
+ engine->invokeOutputModalityCallback(&engine->__touchModality);
+
return ECORE_CALLBACK_CANCEL;
}