Skip to content

Commit 0e29fad

Browse files
author
Benjamin Pasero
committed
escape -> blur
1 parent 3e28808 commit 0e29fad

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/vs/base/browser/ui/actionbar/actionbar.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,10 @@ export class ActionBar extends EventEmitter implements IActionRunner {
672672
}
673673

674674
private cancel(): void {
675+
if (document.activeElement instanceof HTMLElement) {
676+
(<HTMLElement>document.activeElement).blur(); // remove focus from focussed action
677+
}
678+
675679
this.emit(CommonEventType.CANCEL);
676680
}
677681

0 commit comments

Comments
 (0)