提交 7a629db3 编写于 作者: I isidor

list focus controller do not focus into elements that have tabIndex -1

fixes #52299
上级 eaddbde2
......@@ -358,7 +358,7 @@ class DOMFocusController<T> implements IDisposable {
const focusedDomElement = this.view.domElement(focus[0]);
const tabIndexElement = focusedDomElement.querySelector('[tabIndex]');
if (!tabIndexElement || !(tabIndexElement instanceof HTMLElement)) {
if (!tabIndexElement || !(tabIndexElement instanceof HTMLElement) || tabIndexElement.tabIndex === -1) {
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册