From: Jihoon Kim Date: Mon, 13 Sep 2021 04:31:03 +0000 (+0900) Subject: iu: Change OK key event as Ok X-Git-Tag: submit/tizen/20210914.041950~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c34d3b34d30b2c2e4ff51faba90dca2715cea167;p=platform%2Fcore%2Fuifw%2Fmmi-manager.git iu: Change OK key event as Ok Change-Id: I92148e8cacf0442e7a185728400f989f5a0b4b18 Signed-off-by: Jihoon Kim --- diff --git a/src/iu/data/default_rule.json b/src/iu/data/default_rule.json index 880d286..ad43439 100644 --- a/src/iu/data/default_rule.json +++ b/src/iu/data/default_rule.json @@ -172,7 +172,7 @@ "InputIntents" : [ { "Modality" : "KeyInput", - "Action" : "PressOKButton" + "Action" : "PressOkButton" } ], "MMIStatus": "Execution", @@ -256,7 +256,7 @@ "InputIntents" : [ { "Modality" : "KeyInput", - "Action" : "PressOKButton" + "Action" : "PressOkButton" } ], "MMIStatus": "Execution", diff --git a/src/iu/intent_understanding_engine.cpp b/src/iu/intent_understanding_engine.cpp index ddfc62c..6daf333 100644 --- a/src/iu/intent_understanding_engine.cpp +++ b/src/iu/intent_understanding_engine.cpp @@ -40,7 +40,7 @@ static unordered_map key_action_map { "DOWN", "Down" }, { "LEFT", "Left" }, { "RIGHT", "Right" }, - { "RETURN", "OK" }, + { "RETURN", "Ok" }, { "XF86Back", "Back" }, { "I69", "Back" }, }; diff --git a/tests/iu/intent_understanding_engine_rule_unittests.cpp b/tests/iu/intent_understanding_engine_rule_unittests.cpp index 44cb9e9..8700e6d 100644 --- a/tests/iu/intent_understanding_engine_rule_unittests.cpp +++ b/tests/iu/intent_understanding_engine_rule_unittests.cpp @@ -220,7 +220,7 @@ class IUEngineRuleTest : public testing::Test { "InputIntents" : [ { "Modality" : "KeyInput", - "Action" : "PressOKButton" + "Action" : "PressOkButton" } ], "MMIStatus": "Execution", @@ -304,7 +304,7 @@ class IUEngineRuleTest : public testing::Test { "InputIntents" : [ { "Modality" : "KeyInput", - "Action" : "PressOKButton" + "Action" : "PressOkButton" } ], "MMIStatus": "Execution", @@ -721,7 +721,7 @@ TEST_F(IUEngineRuleTest, utc_intent_understanding_engine_rule_key_press_ok) "InputIntents" : [ { "Modality" : "KeyInput", - "Action" : "PressOKButton" + "Action" : "PressOkButton" } ] } diff --git a/tests/iu/mmi_iu_unittests.cpp b/tests/iu/mmi_iu_unittests.cpp index 9781575..c8759a6 100644 --- a/tests/iu/mmi_iu_unittests.cpp +++ b/tests/iu/mmi_iu_unittests.cpp @@ -439,7 +439,7 @@ TEST_F(IUClientFeedIntentTest, utc_mmi_iu_feed_intent_key_press_ok) "InputIntents" : [ { "Modality" : "KeyInput", - "Action" : "PressOKButton" + "Action" : "PressOkButton" } ] }