Home
last modified time | relevance | path

Searched refs:TextInputAction (Results 1 – 25 of 67) sorted by relevance

123

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/common/ime/
H A Dtext_input_action.cpp20 TextInputAction CastToTextInputAction(int32_t value) in CastToTextInputAction()
22 …if (value < static_cast<int32_t>(TextInputAction::BEGIN) || value > static_cast<int32_t>(TextInput… in CastToTextInputAction()
23 return TextInputAction::UNSPECIFIED; in CastToTextInputAction()
25 return static_cast<TextInputAction>(value); in CastToTextInputAction()
H A Dtext_input_configuration.h35 TextInputAction action = TextInputAction::UNSPECIFIED;
H A Dtext_input_action.h27 enum class TextInputAction { enum
52 TextInputAction CastToTextInputAction(int32_t value);
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_textfield_ffi.cpp34 const std::vector<TextInputAction> TEXT_INPUT_ACTIONS = {
35TextInputAction::UNSPECIFIED, TextInputAction::NONE, TextInputAction::GO, TextInputAction::SEARCH,
36 TextInputAction::SEND, TextInputAction::NEXT, TextInputAction::DONE, TextInputAction::PREVIOUS,
37 TextInputAction::NEW_LINE
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text_field/
H A Don_text_changed_listener_impl.cpp199 TextInputAction action_ = static_cast<TextInputAction>(functionKey.GetEnterKeyType()); in HandleFunctionKey()
201 case TextInputAction::DONE: in HandleFunctionKey()
202 case TextInputAction::NEXT: in HandleFunctionKey()
203 case TextInputAction::SEARCH: in HandleFunctionKey()
204 case TextInputAction::SEND: in HandleFunctionKey()
205 case TextInputAction::GO: in HandleFunctionKey()
H A Dtext_field_component.h106 TextInputAction GetAction() const;
107 void SetAction(TextInputAction action);
H A Drender_text_field.h104 void PerformAction(TextInputAction action, bool forceCloseKeyboard = false) override;
278 TextInputAction GetAction() const in GetAction()
561 TextInputAction action_ = TextInputAction::UNSPECIFIED;
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/search/
H A Dsearch_text_field.cpp35 void SearchTextFieldPattern::PerformAction(TextInputAction action, bool forceCloseKeyboard) in PerformAction()
47 if (event.IsKeepEditable() || action == TextInputAction::NEW_LINE) { in PerformAction()
54 TextInputAction SearchTextFieldPattern::GetDefaultTextInputAction() const in GetDefaultTextInputAction()
56 return TextInputAction::SEARCH; in GetDefaultTextInputAction()
H A Dsearch_text_field.h30 void PerformAction(TextInputAction action, bool forceCloseKeyboard = true) override;
31 TextInputAction GetDefaultTextInputAction() const override;
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text_input/
H A Dtext_input_test.cpp1452 pattern_->UpdateTextInputAction(TextInputAction::GO);
1459 pattern_->UpdateTextInputAction(TextInputAction::SEARCH);
1466 pattern_->UpdateTextInputAction(TextInputAction::SEND);
1473 pattern_->UpdateTextInputAction(TextInputAction::DONE);
1480 pattern_->UpdateTextInputAction(TextInputAction::NEXT);
1487 pattern_->UpdateTextInputAction(TextInputAction::BEGIN);
1494 pattern_->UpdateTextInputAction(TextInputAction::UNSPECIFIED);
1501 pattern_->UpdateTextInputAction(TextInputAction::NONE);
1508 pattern_->UpdateTextInputAction(TextInputAction::PREVIOUS);
1515 pattern_->UpdateTextInputAction(TextInputAction::END);
[all …]
H A Dtext_field_pattern_testfour.cpp449 pattern->PerformAction(TextInputAction::DONE);
456 pattern->PerformAction(TextInputAction::DONE);
459 pattern->PerformAction(TextInputAction::NEW_LINE);
462 pattern->PerformAction(TextInputAction::NEW_LINE);
464 pattern->PerformAction(TextInputAction::NEW_LINE);
H A Dtext_input_base.h122 const TextInputAction DEFAULT_ENTER_KEY_TYPE = TextInputAction::BEGIN;
H A Dtext_area_test.cpp260 EXPECT_EQ(textInputAction, TextInputAction::NEW_LINE);
540 EXPECT_EQ(textInputAction, TextInputAction::NEW_LINE);
577 EXPECT_EQ(textInputAction, TextInputAction::NEW_LINE);
616 EXPECT_EQ(textInputAction, TextInputAction::NEW_LINE);
1108 EXPECT_EQ(textInputAction, TextInputAction::NEW_LINE);
1145 EXPECT_EQ(textInputAction, TextInputAction::NEW_LINE);
1182 EXPECT_EQ(textInputAction, TextInputAction::NEW_LINE);
1756 EXPECT_EQ(textInputAction, TextInputAction::NEW_LINE);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Don_text_changed_listener_impl.cpp178 auto action = static_cast<TextInputAction>(functionKey.GetEnterKeyType()); in HandleFunctionKey()
180 case TextInputAction::DONE: in HandleFunctionKey()
181 case TextInputAction::NEXT: in HandleFunctionKey()
182 case TextInputAction::SEARCH: in HandleFunctionKey()
183 case TextInputAction::SEND: in HandleFunctionKey()
184 case TextInputAction::GO: in HandleFunctionKey()
185 case TextInputAction::PREVIOUS: in HandleFunctionKey()
186 case TextInputAction::NEW_LINE: in HandleFunctionKey()
H A Dtext_field_pattern.h390 virtual TextInputAction GetDefaultTextInputAction() const;
402 void PerformAction(TextInputAction action, bool forceCloseKeyboard = false) override;
432 ACE_DEFINE_PROPERTY_ITEM_FUNC_WITHOUT_GROUP(TextInputAction, TextInputAction) in ACE_DEFINE_PROPERTY_ITEM_FUNC_WITHOUT_GROUP() argument
934 TextInputAction GetAction() in GetAction()
1599 void OnTextInputActionUpdate(TextInputAction value);
1755 TextInputAction action_ = TextInputAction::UNSPECIFIED;
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
H A Dtextinput_composed_element.cpp238 if (action == TextInputAction::GO) { in GetEnterKeyType()
240 } else if (action == TextInputAction::SEARCH) { in GetEnterKeyType()
242 } else if (action == TextInputAction::SEND) { in GetEnterKeyType()
244 } else if (action == TextInputAction::NEXT) { in GetEnterKeyType()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/utils/
H A Dutils.h390 inline TextInputAction ConvertStrToTextInputAction(const std::string& action) in ConvertStrToTextInputAction()
392 TextInputAction inputAction; in ConvertStrToTextInputAction()
394 inputAction = TextInputAction::NEXT; in ConvertStrToTextInputAction()
396 inputAction = TextInputAction::GO; in ConvertStrToTextInputAction()
398 inputAction = TextInputAction::DONE; in ConvertStrToTextInputAction()
400 inputAction = TextInputAction::SEND; in ConvertStrToTextInputAction()
402 inputAction = TextInputAction::SEARCH; in ConvertStrToTextInputAction()
404 inputAction = TextInputAction::UNSPECIFIED; in ConvertStrToTextInputAction()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/text_field/
H A Drender_text_field_test.cpp31 const TextInputAction TEXT_FIELD_TEXTINPUTACTION_SEARCH = TextInputAction::SEARCH;
79 TextInputAction GetAction() const in GetAction()
H A Ddsl_text_field_creator_test.cpp35 const TextInputAction TEXT_FIELD_ATTR_ACTION_DEFAULT = TextInputAction::UNSPECIFIED;
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/common/ime/
H A Dime_test.cpp92 EXPECT_EQ(CastToTextInputAction(1), TextInputAction::NONE);
97 EXPECT_EQ(CastToTextInputAction(-2), TextInputAction::UNSPECIFIED);
102 EXPECT_EQ(CastToTextInputAction(10), TextInputAction::UNSPECIFIED);
107 EXPECT_EQ(CastToTextInputAction(0), TextInputAction::BEGIN);
126 …EXPECT_EQ(json->GetValue(ACTION_TEST)->GetInt(), static_cast<int32_t>(TextInputAction::UNSPECIFIED…
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/
H A Drich_editor_model_ng.h74 void SetEnterKeyType(TextInputAction value) override;
75 static void SetEnterKeyType(FrameNode* frameNode, const TextInputAction& action);
H A Drich_editor_model_ng.cpp357 void RichEditorModelNG ::SetEnterKeyType(TextInputAction action) in SetEnterKeyType()
362 if (action == TextInputAction::UNSPECIFIED) { in SetEnterKeyType()
363 action = TextInputAction::NEW_LINE; in SetEnterKeyType()
368 void RichEditorModelNG::SetEnterKeyType(FrameNode* frameNode, const TextInputAction& action) in SetEnterKeyType()
/ohos5.0/foundation/arkui/ace_engine/adapter/preview/entrance/editing/
H A Dtext_input_client_mgr.h41 bool PerformAction(const TextInputAction action);
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/search/
H A Dsearch_testtwo_ng.cpp810 TextInputAction action2 = TextInputAction::SEARCH;
813 action2 = TextInputAction::NEW_LINE;
816 action2 = TextInputAction::DONE;
1159 searchModelInstance.SetSearchEnterKeyType(frameNode, TextInputAction::NEXT);
1161 …EXPECT_EQ(TextInputAction::NEXT, textFieldPattern->GetTextInputActionValue(TextInputAction::UNSPEC…
1175 searchModelInstance.SetSearchEnterKeyType(frameNode, TextInputAction::UNSPECIFIED);
1178 …EXPECT_EQ(TextInputAction::SEARCH, textFieldPattern->GetTextInputActionValue(TextInputAction::UNSP…
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/rich_editor/
H A Drich_editor_pattern_testtwo_ng.cpp714 richEditorPattern->action_ = TextInputAction::UNSPECIFIED;
716 EXPECT_NE(richEditorPattern->action_, TextInputAction::UNSPECIFIED);
738 richEditorPattern->action_ = TextInputAction::SEARCH;
740 EXPECT_NE(richEditorPattern->action_, TextInputAction::SEARCH);
762 richEditorPattern->action_ = TextInputAction::SEARCH;
764 EXPECT_NE(richEditorPattern->action_, TextInputAction::SEARCH);

123