提交 0bdf4c42 编写于 作者: I isidor

debug: space to change variable value

fixes #8285
上级 af8b5c32
......@@ -695,6 +695,18 @@ export class VariablesController extends BaseDebugController {
return super.onLeftClick(tree, element, event);
}
protected onSpace(tree: tree.ITree, event: IKeyboardEvent): boolean {
const element = tree.getFocus();
const selectedExpression = this.debugService.getViewModel().getSelectedExpression();
if (element instanceof model.Variable && element.reference === 0 && element !== selectedExpression) {
event.stopPropagation();
event.preventDefault();
this.debugService.getViewModel().setSelectedExpression(element);
}
return super.onSpace(tree, event);
}
}
// watch expressions
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册