Home
last modified time | relevance | path

Searched refs:pressedCodes (Results 1 – 25 of 39) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text_input/
H A Dtext_field_keyevent_test.cpp44 event.pressedCodes = presscodes;
272 event.pressedCodes.clear();
281 event.pressedCodes.clear();
323 event.pressedCodes.clear();
331 event.pressedCodes.clear();
366 event.pressedCodes.clear();
375 event.pressedCodes.clear();
409 event.pressedCodes.clear();
456 event.pressedCodes.clear();
501 event.pressedCodes.clear();
[all …]
H A Dtext_input_test.cpp548 event.pressedCodes.emplace_back(KeyCode::KEY_SHIFT_LEFT);
549 event.pressedCodes.emplace_back(KeyCode::KEY_F10);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/event/
H A Dkey_event.h483 : code(code), action(action), pressedCodes(std::move(pressedCodes)), repeatTime(repeatTime), in KeyEvent()
506 auto curPressedCode = pressedCodes.rbegin(); in HasKey()
507 while (curPressedCode != pressedCodes.rend()) { in HasKey()
518 auto pressedKeysCnt = pressedCodes.size(); in IsExactlyKey()
519 … if (std::find(pressedCodes.begin(), pressedCodes.end(), KeyCode::KEY_FN) != pressedCodes.end()) { in IsExactlyKey()
527 if (expectCodes.size() > pressedCodes.size() || pressedCodes.empty()) { in IsKey()
531 auto curPressedCode = pressedCodes.crbegin(); in IsKey()
565 return pressedCodes.size() > 1; in IsCombinationKey()
583 std::vector<KeyCode> pressedCodes; member
606 std::for_each(pressedCodes.begin(), pressedCodes.end(), in ToString()
[all …]
H A Daxis_event.h82 std::vector<KeyCode> pressedCodes; member
97 … std::vector<KeyCode> pressedCodes, int32_t targetDisplayId, int32_t originalId, bool isInjected) in AxisEvent()
101 sourceTool(sourceTool), pointerEvent(std::move(pointerEvent)), pressedCodes(pressedCodes), in AxisEvent()
111 … isRotationEvent, action, time, deviceId, sourceType, sourceTool, pointerEvent, pressedCodes, in CreateScaleEvent()
116 pointerEvent, pressedCodes, targetDisplayId, originalId, isInjected }; in CreateScaleEvent()
/ohos5.0/foundation/arkui/ace_engine/adapter/preview/entrance/samples/
H A Devent_adapter.cpp141 keyEvent_->pressedCodes.clear(); in RecognizeKeyEvent()
143 keyEvent_->pressedCodes.push_back(KeyCode::KEY_CTRL_LEFT); in RecognizeKeyEvent()
146 keyEvent_->pressedCodes.push_back(KeyCode::KEY_META_LEFT); in RecognizeKeyEvent()
149 keyEvent_->pressedCodes.push_back(KeyCode::KEY_SHIFT_LEFT); in RecognizeKeyEvent()
152 keyEvent_->pressedCodes.push_back(KeyCode::KEY_ALT_LEFT); in RecognizeKeyEvent()
173 keyEvent_->pressedCodes.push_back(keyEvent_->code); in RecognizeKeyEvent()
/ohos5.0/foundation/arkui/ace_engine/adapter/preview/entrance/
H A Devent_dispatcher.cpp107 for (auto& item : keyEvent->pressedCodes) { in ConvertKeyEvent()
108 event.pressedCodes.push_back(static_cast<KeyCode>(static_cast<int32_t>(item))); in ConvertKeyEvent()
421 if (keyEvent->pressedCodes.size() == 1) { in HandleTextKeyEvent()
438 } else if (keyEvent->pressedCodes.size() == maxKeySizes && in HandleTextKeyEvent()
439 keyEvent->pressedCodes[0] == MMI::KeyCode::KEY_SHIFT_LEFT) { in HandleTextKeyEvent()
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webcore/
H A Dark_web_nweb_impl.cpp1043 …bImpl::WebSendKeyEvent(int32_t key_code, int32_t key_action, const ArkWebInt32Vector& pressedCodes) in WebSendKeyEvent() argument
1046 … key_code, key_action, ArkWebBasicVectorStructToClass<int32_t, ArkWebInt32Vector>(pressedCodes)); in WebSendKeyEvent()
1063 const ArkWebInt32Vector& pressedCodes) in WebSendMouseWheelEvent() argument
1066 ArkWebBasicVectorStructToClass<int32_t, ArkWebInt32Vector>(pressedCodes)); in WebSendMouseWheelEvent()
1073 const ArkWebInt32Vector& pressedCodes) in WebSendTouchpadFlingEvent() argument
1076 ArkWebBasicVectorStructToClass<int32_t, ArkWebInt32Vector>(pressedCodes)); in WebSendTouchpadFlingEvent()
H A Dark_web_nweb_impl.h1169 …SendKeyEvent(int32_t key_code, int32_t key_action, const ArkWebInt32Vector& pressedCodes) override;
1186 const ArkWebInt32Vector& pressedCodes) override;
1202 const ArkWebInt32Vector& pressedCodes) override;
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/include/
H A Dark_web_nweb.h1418 …l WebSendKeyEvent(int32_t key_code, int32_t key_action, const ArkWebInt32Vector& pressedCodes) = 0;
1438 const ArkWebInt32Vector& pressedCodes) = 0;
1455 const ArkWebInt32Vector& pressedCodes) = 0;
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/event/
H A Devent_manager_test_ng.cpp115 event.pressedCodes.emplace_back(KeyCode::KEY_CTRL_LEFT);
116 event.pressedCodes.emplace_back(KeyCode::KEY_SHIFT_LEFT);
117 event.pressedCodes.emplace_back(KeyCode::KEY_ALT_LEFT);
118 event.pressedCodes.emplace_back(KeyCode::KEY_C);
124 event.pressedCodes.emplace_back(KeyCode::KEY_CTRL_LEFT);
125 event.pressedCodes.emplace_back(KeyCode::KEY_SHIFT_LEFT);
126 event.pressedCodes.emplace_back(KeyCode::KEY_A);
132 event.pressedCodes.emplace_back(KeyCode::KEY_CTRL_LEFT);
133 event.pressedCodes.emplace_back(KeyCode::KEY_V);
H A Devent_manager_test_ng_new.cpp988 event.pressedCodes.emplace_back(KeyCode::KEY_CTRL_LEFT);
989 event.pressedCodes.emplace_back(KeyCode::KEY_SHIFT_LEFT);
990 event.pressedCodes.emplace_back(KeyCode::KEY_ALT_LEFT);
991 event.pressedCodes.emplace_back(KeyCode::KEY_C);
H A Dfocus_hub_test_ng_for_property_config.cpp407 keyEvent.pressedCodes.emplace_back(KeyCode::KEY_HOME);
1117 keyEvent.pressedCodes.emplace_back(KeyCode::KEY_HOME);
1153 keyEvent.pressedCodes.emplace_back(KeyCode::KEY_HOME);
1185 keyEvent.pressedCodes.emplace_back(KeyCode::KEY_SHIFT_LEFT);
1186 keyEvent.pressedCodes.emplace_back(KeyCode::KEY_TAB);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/gestures/recognizers/
H A Dpinch_recognizer.cpp83 return std::any_of(event.pressedCodes.begin(), event.pressedCodes.end(), in IsCtrlBeingPressed()
427 info.SetPressedKeyCodes(lastAxisEvent_.pressedCodes); in SendCallbackMsg()
H A Drotation_recognizer.cpp365 info.SetPressedKeyCodes(lastAxisEvent_.pressedCodes); in SendCallbackMsg()
H A Dswipe_recognizer.cpp413 info.SetPressedKeyCodes(lastAxisEvent_.pressedCodes); in SendCallbackMsg()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/indexer/
H A Dindexer_select_test_ng.cpp541 keyEvent.pressedCodes = { KeyCode::KEY_A, KeyCode::KEY_B };
550 keyEvent.pressedCodes = { KeyCode::KEY_A, KeyCode::KEY_B };
559 keyEvent.pressedCodes = {};
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/
H A Dark_web_nweb_wrapper.cpp1209 …er::WebSendKeyEvent(int32_t key_code, int32_t key_action, const std::vector<int32_t>& pressedCodes) in WebSendKeyEvent() argument
1211 …rkWebInt32Vector pCodes = ArkWebBasicVectorClassToStruct<int32_t, ArkWebInt32Vector>(pressedCodes); in WebSendKeyEvent()
1240 const std::vector<int32_t>& pressedCodes) in WebSendMouseWheelEvent() argument
1242 …rkWebInt32Vector pCodes = ArkWebBasicVectorClassToStruct<int32_t, ArkWebInt32Vector>(pressedCodes); in WebSendMouseWheelEvent()
1253 const std::vector<int32_t>& pressedCodes) in WebSendTouchpadFlingEvent() argument
1255 …rkWebInt32Vector pCodes = ArkWebBasicVectorClassToStruct<int32_t, ArkWebInt32Vector>(pressedCodes); in WebSendTouchpadFlingEvent()
H A Dark_web_nweb_wrapper.h1179 const std::vector<int32_t>& pressedCodes) override;
1196 const std::vector<int32_t>& pressedCodes) override;
1212 const std::vector<int32_t>& pressedCodes) override;
/ohos5.0/base/web/webview/ohos_interface/include/ohos_nweb/
H A Dnweb.h1356 …ool WebSendKeyEvent(int32_t keyCode, int32_t keyAction, const std::vector<int32_t>& pressedCodes) { in WebSendKeyEvent() argument
1374 const std::vector<int32_t>& pressedCodes) {} in WebSendMouseWheelEvent() argument
1389 const std::vector<int32_t>& pressedCodes) {} in WebSendTouchpadFlingEvent() argument
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dmmi_event_convertor.cpp422 event.pressedCodes.clear(); in ConvertAxisEvent()
424 event.pressedCodes.emplace_back(static_cast<KeyCode>(curCode)); in ConvertAxisEvent()
460 event.pressedCodes.clear(); in ConvertKeyEvent()
462 event.pressedCodes.emplace_back(static_cast<KeyCode>(curCode)); in ConvertKeyEvent()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/tabs/
H A Dtabs_event_test_ng.cpp1006 std::vector<KeyCode> pressedCodes; variable
1007 pressedCodes.emplace_back(KeyCode::KEY_0);
1008 pressedCodes.emplace_back(KeyCode::KEY_1);
1018 …auto event = KeyEvent(code, action, pressedCodes, repeatTime, time, metaKey, deviceId, sourceType,…
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text/
H A Dtext_testfour_ng.cpp238 event.pressedCodes = pressCodes;
241 event.pressedCodes.clear();
242 event.pressedCodes.push_back(ctrl);
243 event.pressedCodes.push_back(KeyCode::KEY_C);
257 event.pressedCodes.clear();
258 event.pressedCodes.push_back(shift);
259 event.pressedCodes.push_back(code);
/ohos5.0/foundation/arkui/ace_engine/adapter/preview/external/multimodalinput/
H A Dkey_event.h446 std::vector<KeyCode> pressedCodes; variable
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/rich_editor/
H A Drich_editor_keyboard_shortcut_test_ng.cpp95 keyE.pressedCodes = presscodes;
97 keyE.pressedCodes.clear();
98 keyE.pressedCodes.emplace_back(eventCode);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/web/resource/
H A Dweb_delegate.h755 const double& vx, const double& vy, const std::vector<int32_t>& pressedCodes);
758 const double& deltaX, const double& deltaY, const std::vector<int32_t>& pressedCodes);
760 … bool WebOnKeyEvent(int32_t keyCode, int32_t keyAction, const std::vector<int32_t>& pressedCodes);

12