Skip to content

Commit d0e29c9

Browse files
authored
Add missing transform shortcut key handling for S (focus-self) (#6117)
This shortcut key is advertised by the context menu but I forgot to actually implement it in #5774. https://github.com/firefox-devtools/profiler/blob/4bd8b75f1932febe86294629f66ac9d91fea4b4b/src/components/shared/CallNodeContextMenu.tsx#L703
2 parents 28216fd + 60f30d1 commit d0e29c9

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/actions/profile-view.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2051,6 +2051,15 @@ export function handleCallNodeTransformShortcut(
20512051
})
20522052
);
20532053
break;
2054+
case 'S':
2055+
dispatch(
2056+
addTransformToStack(threadsKey, {
2057+
type: 'focus-self',
2058+
funcIndex,
2059+
implementation,
2060+
})
2061+
);
2062+
break;
20542063
case 'M':
20552064
dispatch(
20562065
addTransformToStack(threadsKey, {

0 commit comments

Comments
 (0)