Skip to content

Commit 86849c0

Browse files
pfaffeDevtools-frontend LUCI CQ
authored andcommitted
Prevent default in tooltip hotkeys
Fixed: 404535134 Change-Id: Id1930b7023938154a1b46348b6c2170eab89d66c Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6368838 Reviewed-by: Eric Leese <[email protected]> Commit-Queue: Eric Leese <[email protected]> Auto-Submit: Philip Pfaffe <[email protected]>
1 parent 93d0429 commit 86849c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

front_end/panels/elements/StylePropertyTreeElement.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ function getTracingTooltip(
277277
if (e.key === 'Escape' || (e.altKey && e.key === 'ArrowDown')){
278278
maybeTooltip.hideTooltip();
279279
maybeTooltip.anchor?.focus();
280-
e.consume();
280+
e.consume(true);
281281
}
282282
}}
283283
.widgetConfig=${UI.Widget.widgetConfig(CSSValueTraceView, {})}

front_end/ui/components/tooltips/Tooltip.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export class Tooltip extends HTMLElement {
214214
#keyDown = (event: KeyboardEvent): void => {
215215
if ((event.altKey && event.key === 'ArrowDown') || (event.key === 'Escape' && this.open)) {
216216
this.toggle();
217-
event.stopPropagation();
217+
event.consume(true);
218218
}
219219
};
220220

0 commit comments

Comments
 (0)