@@ -213,7 +213,8 @@ export class TimelineFlameChartDataProvider extends Common.ObjectWrapper.ObjectW
213213 return ;
214214 }
215215
216- const contextMenu = new UI . ContextMenu . ContextMenu ( event ) ;
216+ // TODO(crbug.com/368240754): Temporarily use soft menu for the shortcuts to show, till the accelerators backend CLs land.
217+ const contextMenu = new UI . ContextMenu . ContextMenu ( event , { useSoftMenu : true } ) ;
217218
218219 if ( UI . ActionRegistry . ActionRegistry . instance ( ) . hasAction ( 'drjones.performance-panel-context' ) ) {
219220 const aiNode = this . getAIEventNodeTreeFromEntryIndex ( entryIndex ) ;
@@ -229,6 +230,7 @@ export class TimelineFlameChartDataProvider extends Common.ObjectWrapper.ObjectW
229230 disabled : ! possibleActions ?. [ PerfUI . FlameChart . FilterAction . MERGE_FUNCTION ] ,
230231 jslogContext : 'hide-function' ,
231232 } ) ;
233+ hideEntryOption . setShortcut ( 'H' ) ;
232234 hideEntryOption . setAccelerator ( UI . KeyboardShortcut . Keys . H , [ UI . KeyboardShortcut . Modifiers . None ] ) ;
233235 hideEntryOption . setIsDevToolsPerformanceMenuItem ( true ) ;
234236
@@ -238,6 +240,7 @@ export class TimelineFlameChartDataProvider extends Common.ObjectWrapper.ObjectW
238240 disabled : ! possibleActions ?. [ PerfUI . FlameChart . FilterAction . COLLAPSE_FUNCTION ] ,
239241 jslogContext : 'hide-children' ,
240242 } ) ;
243+ hideChildrenOption . setShortcut ( 'C' ) ;
241244 hideChildrenOption . setAccelerator ( UI . KeyboardShortcut . Keys . C , [ UI . KeyboardShortcut . Modifiers . None ] ) ;
242245 hideChildrenOption . setIsDevToolsPerformanceMenuItem ( true ) ;
243246
@@ -248,6 +251,7 @@ export class TimelineFlameChartDataProvider extends Common.ObjectWrapper.ObjectW
248251 disabled : ! possibleActions ?. [ PerfUI . FlameChart . FilterAction . COLLAPSE_REPEATING_DESCENDANTS ] ,
249252 jslogContext : 'hide-repeating-children' ,
250253 } ) ;
254+ hideRepeatingChildrenOption . setShortcut ( 'R' ) ;
251255 hideRepeatingChildrenOption . setAccelerator ( UI . KeyboardShortcut . Keys . R , [ UI . KeyboardShortcut . Modifiers . None ] ) ;
252256 hideRepeatingChildrenOption . setIsDevToolsPerformanceMenuItem ( true ) ;
253257
@@ -257,6 +261,7 @@ export class TimelineFlameChartDataProvider extends Common.ObjectWrapper.ObjectW
257261 disabled : ! possibleActions ?. [ PerfUI . FlameChart . FilterAction . RESET_CHILDREN ] ,
258262 jslogContext : 'reset-children' ,
259263 } ) ;
264+ resetChildrenOption . setShortcut ( 'U' ) ;
260265 resetChildrenOption . setAccelerator ( UI . KeyboardShortcut . Keys . U , [ UI . KeyboardShortcut . Modifiers . None ] ) ;
261266 resetChildrenOption . setIsDevToolsPerformanceMenuItem ( true ) ;
262267
0 commit comments