提交 334c4051 编写于 作者: R Rob Lourens

Fix #56726 - don't block "shift+f10" in input boxes in the settings tree

上级 f54c36f7
...@@ -1315,15 +1315,15 @@ export class TreeView extends HeightMap { ...@@ -1315,15 +1315,15 @@ export class TreeView extends HeightMap {
this.didJustPressContextMenuKey = event.keyCode === KeyCode.ContextMenu || (event.shiftKey && event.keyCode === KeyCode.F10); this.didJustPressContextMenuKey = event.keyCode === KeyCode.ContextMenu || (event.shiftKey && event.keyCode === KeyCode.F10);
if (event.target && event.target.tagName && event.target.tagName.toLowerCase() === 'input') {
return; // Ignore event if target is a form input field (avoids browser specific issues)
}
if (this.didJustPressContextMenuKey) { if (this.didJustPressContextMenuKey) {
event.preventDefault(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
} }
if (event.target && event.target.tagName && event.target.tagName.toLowerCase() === 'input') {
return; // Ignore event if target is a form input field (avoids browser specific issues)
}
this.context.controller.onKeyDown(this.context.tree, event); this.context.controller.onKeyDown(this.context.tree, event);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册