mirror of
https://github.com/Microsoft/vscode
synced 2024-09-19 18:48:00 +00:00
Fixing how escape key works in listWidget (#110760)
This commit is contained in:
parent
7bbf45c14e
commit
221a5570b6
|
@ -318,10 +318,12 @@ class KeyboardController<T> implements IDisposable {
|
|||
}
|
||||
|
||||
private onEscape(e: StandardKeyboardEvent): void {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
this.list.setSelection([], e.browserEvent);
|
||||
this.view.domNode.focus();
|
||||
if (this.list.getSelection().length) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
this.list.setSelection([], e.browserEvent);
|
||||
this.view.domNode.focus();
|
||||
}
|
||||
}
|
||||
|
||||
dispose() {
|
||||
|
|
Loading…
Reference in a new issue