提交 f58a45aa 编写于 作者: I isidor

debug: also change variable value on enter

上级 a581627c
......@@ -682,6 +682,19 @@ export class VariablesController extends BaseDebugController {
return super.onLeftClick(tree, element, event);
}
protected onEnter(tree: tree.ITree, event: IKeyboardEvent): boolean {
// double click on primitive value: open input box to be able to set the value
const element = tree.getFocus();
if (element instanceof model.Variable) {
if (element.reference === 0) {
this.debugService.getViewModel().setSelectedExpression(element);
}
return true;
}
return super.onEnter(tree, event);
}
}
// watch expressions
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册