提交 ddad50c5 编写于 作者: I isidor

Trigger set variable input onRename, not onEnter

fixes #19583
上级 cda3584a
......@@ -166,6 +166,8 @@ function renderRenameBox(debugService: debug.IDebugService, contextViewService:
const isEscape = e.equals(KeyCode.Escape);
const isEnter = e.equals(KeyCode.Enter);
if (isEscape || isEnter) {
e.preventDefault();
e.stopPropagation();
wrapUp(isEnter);
}
}));
......@@ -778,7 +780,7 @@ export class VariablesController extends BaseDebugController {
return super.onLeftClick(tree, element, event);
}
protected onEnter(tree: ITree, event: IKeyboardEvent): boolean {
protected onRename(tree: ITree, event: IKeyboardEvent): boolean {
const element = tree.getFocus();
if (element instanceof Variable && !element.hasChildren) {
this.debugService.getViewModel().setSelectedExpression(element);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册