e631e32a1a771a36267af3f8af8b64e9365bc19e |
|
19-Oct-2016 |
Peeyush Agarwal <apeeyush@google.com> |
Extend MenuItem to allow modifier keys for shortcut Before this, CTRL was the default modifier for MenuItem shortcuts. Now, It's possible to specify the modifier in XML or via MenuItem methods. The modifier list includes META, CTRL, ALT, SHIFT, SYM and FUNCTION. WIP on support library implementation Bug: 32165848 Test: Run the tests using following commands: > cts-tradefed run cts-dev -m CtsViewTestCases -t > android.view.cts.MenuTest#testPerformShortcut > cts-tradefed run cts-dev -m CtsViewTestCases -t > android.view.cts.MenuInflaterTest#testInflateShortcutModifiersFromXml Change-Id: I7db4607d4657451934761914efe4c250de109653
/frameworks/base/core/java/com/android/internal/view/menu/ActionMenu.java
|