Skip to content
Commit 8a0c937d authored by arthurhung's avatar arthurhung
Browse files

Refactor ShortcutManager to ModifierShortcutManager

The ModifierShortcutManager will manage 'shortcut key -> Intent'
handling or notify IShortcutKeyService invoked by modifier keys+
(meta, alt, ctrl shift or search) shortcut.

This's different to KeyCombinationManager, the ModifierShortcutManager
will check the modifier key state and the modifier key should be
pressed first. And the key event would still continue dispatching to
the app side without any pending. If it's handled, the app side would
recevie the key canceled event.

- Rename ShortcutManager to ModifierShortcutManager.
- Move shortcuts that are invoked by search key + key.
- Move shortcuts that are invoked by meta key (alt, ctrl, meta, shift)+.
- Move shortcut to IShortcutService to ModifierShortcutManager.
- Move special keys that are used to launch particular kinds of
  applications to ModifierShortcutManager.

Test: manual with connected keyboard
Bug: 162194917
Bug: 127687575
Change-Id: I55ad50848976120984d797a69765241030644ce3
parent b7f82de1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment