fake browser event for select all

上级 d9fa2f1d
......@@ -560,7 +560,8 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
// List
if (focused instanceof List || focused instanceof PagedList) {
const list = focused;
list.setSelection(range(list.length));
const fakeKeyboardEvent = new KeyboardEvent('keydown');
list.setSelection(range(list.length), fakeKeyboardEvent);
}
// Trees
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册