未验证 提交 221a5570 编写于 作者: A Aasim Khan 提交者: GitHub

Fixing how escape key works in listWidget (#110760)

上级 7bbf45c1
......@@ -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() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册