Home
last modified time | relevance | path

Searched refs:ShortcutKey (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/foundation/multimodalinput/input/service/key_command/include/
H A Dkey_command_handler.h74 struct ShortcutKey { struct
211 void LaunchAbility(const ShortcutKey &key);
214 bool IsKeyMatch(const ShortcutKey &shortcutKey, const std::shared_ptr<KeyEvent> &key);
216 bool HandleKeyUp(const std::shared_ptr<KeyEvent> &keyEvent, const ShortcutKey &shortcutKey);
217 bool HandleKeyDown(ShortcutKey &shortcutKey);
218 bool HandleKeyCancel(ShortcutKey &shortcutKey);
321 ShortcutKey lastMatchedKey_;
322 ShortcutKey currentLaunchAbilityKey_;
323 std::map<std::string, ShortcutKey> shortcutKeys_;
H A Dkey_command_handler_util.h110 bool GetPreKeys(const cJSON* jsonData, ShortcutKey &shortcutKey);
118 bool ConvertToShortcutKey(const cJSON* jsonData, ShortcutKey &shortcutKey, std::vector<std::string>…
130 std::string GenerateKey(const ShortcutKey& key);
131 bool ParseShortcutKeys(const JsonParser& parser, std::map<std::string, ShortcutKey>& shortcutKeyMap,
/ohos5.0/foundation/multimodalinput/input/service/key_command/test/
H A Dkey_command_handler_util_test.cpp108 ShortcutKey shortcutKey;
129 ShortcutKey shortcutKey;
146 ShortcutKey shortcutKey;
165 ShortcutKey shortcutKey;
185 ShortcutKey shortcutKey;
296 ShortcutKey shortcutKey;
312 ShortcutKey shortcutKey;
332 ShortcutKey shortcutKey;
350 ShortcutKey shortcutKey;
368 ShortcutKey shortcutKey;
[all …]
H A Dkey_command_handler_test.cpp380 ShortcutKey key;
1640 ShortcutKey shortcutKey;
1655 ShortcutKey shortcutKey;
1685 ShortcutKey shortcutKey;
2643 ShortcutKey key;
2682 ShortcutKey key;
2718 ShortcutKey key;
2754 ShortcutKey key;
3239 ShortcutKey key;
3270 ShortcutKey key;
[all …]
/ohos5.0/foundation/multimodalinput/input/service/key_command/src/
H A Dkey_command_handler_util.cpp45 bool GetPreKeys(const cJSON* jsonData, ShortcutKey &shortcutKey) in GetPreKeys()
238 bool ConvertToShortcutKey(const cJSON* jsonData, ShortcutKey &shortcutKey, std::vector<std::string>… in ConvertToShortcutKey()
553 std::string GenerateKey(const ShortcutKey& key) in GenerateKey()
566 bool ParseShortcutKeys(const JsonParser& parser, std::map<std::string, ShortcutKey>& shortcutKeyMap, in ParseShortcutKeys()
576 ShortcutKey shortcutKey; in ParseShortcutKeys()
H A Dkey_command_handler.cpp1237 ShortcutKey &shortcutKey = item.second; in ParseStatusConfigObserver()
1241 CreateStatusConfigObserver<ShortcutKey>(shortcutKey); in ParseStatusConfigObserver()
1825 std::vector<ShortcutKey> upAbilities; in HandleShortKeys()
1827 ShortcutKey &shortcutKey = item.second; in HandleShortKeys()
1855 [](const ShortcutKey &lShortcutKey, const ShortcutKey &rShortcutKey) -> bool { in HandleShortKeys()
1858 ShortcutKey tmpShorteKey = upAbilities.front(); in HandleShortKeys()
2135 bool KeyCommandHandler::IsKeyMatch(const ShortcutKey &shortcutKey, const std::shared_ptr<KeyEvent> … in IsKeyMatch()
2164 bool KeyCommandHandler::HandleKeyDown(ShortcutKey &shortcutKey) in HandleKeyDown()
2229 bool KeyCommandHandler::HandleKeyCancel(ShortcutKey &shortcutKey) in HandleKeyCancel()
2335 void KeyCommandHandler::LaunchAbility(const ShortcutKey &key) in LaunchAbility()
[all …]