commit | f7bccf2868c0039b65147a087efe6a7f073bdfad | [log] [tgz] |
---|---|---|
author | Brandon Goddard <[email protected]> | Wed Dec 11 21:49:16 2019 |
committer | Commit Bot <[email protected]> | Wed Dec 11 22:10:06 2019 |
tree | b9895bfa3d713ed019f9f0f9c7afd9a0c4c75f4c | |
parent | 98ea80082239f0e36df38ed9f3b6b0269b0ad1ea [diff] [blame] |
Datagrid: Make the header context menu keyboard accessible This change adds a sub menu item to the datagrid context menu that allows the Header context menu to be accessible from the contextMenuKey press in the body of the datagrid. This is similar to the "Sort By" menu option added previously for the same purpose. Currently, the header options are used in the network tool and the protocol monitor. Before: https://imgur.com/oGh9fwr After: https://imgur.com/G37Cts3 Bug: 963183 Change-Id: I4d02bed0dc9924be7fd415cad4053711a3aeb044 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1891662 Commit-Queue: Brandon Goddard <[email protected]> Reviewed-by: Lorne Mitchell <[email protected]> Reviewed-by: Jack Lynch <[email protected]>
diff --git a/front_end/ui/ContextMenu.js b/front_end/ui/ContextMenu.js index a3a76c9..6eb13df 100644 --- a/front_end/ui/ContextMenu.js +++ b/front_end/ui/ContextMenu.js
@@ -207,7 +207,7 @@ /** * @unrestricted */ -class SubMenu extends Item { +export class SubMenu extends Item { /** * @param {?ContextMenu} contextMenu * @param {string=} label @@ -589,6 +589,9 @@ */ UI.ContextMenuSection = Section; +/** @constructor */ +UI.ContextSubMenu = SubMenu; + /** * @interface */