提交 35cac93b 编写于 作者: I isidor

list.clear should clear both focus and selection in one go

上级 079aef1e
......@@ -751,7 +751,8 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
if (list.getSelection().length > 0) {
list.setSelection([]);
} else if (list.getFocus().length > 0) {
}
if (list.getFocus().length > 0) {
list.setFocus([]);
}
}
......@@ -763,7 +764,8 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
if (list.getSelection().length > 0) {
list.setSelection([], fakeKeyboardEvent);
} else if (list.getFocus().length > 0) {
}
if (list.getFocus().length > 0) {
list.setFocus([], fakeKeyboardEvent);
}
}
......@@ -774,7 +776,8 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
if (tree.getSelection().length) {
tree.clearSelection({ origin: 'keyboard' });
} else if (tree.getFocus()) {
}
if (tree.getFocus()) {
tree.clearFocus({ origin: 'keyboard' });
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册