提交 58425517 编写于 作者: B Benjamin Pasero

quickopen: Position cursor at the end of input to allow right arrow (open in...

quickopen: Position cursor at the end of input to allow right arrow (open in background) to function immediately
上级 a8257859
......@@ -164,6 +164,9 @@ export class QuickOpenWidget implements IModelProvider {
DOM.EventHelper.stop(e, true);
this.navigateInTree(keyboardEvent.keyCode, keyboardEvent.shiftKey);
// Position cursor at the end of input to allow right arrow (open in background) to function immediately
this.inputBox.inputElement.selectionStart = this.inputBox.value.length;
}
// Select element on Enter or on Arrow-Right if we are at the end of the input
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册