Skip to content

Commit

Permalink
fix(TreeView): update shift + home/end shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed May 4, 2022
1 parent 7fdeba1 commit 253375f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/components/TreeView/TreeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default function TreeView({
const nodeIds = [];

if (matches(event, [keys.Home, keys.End])) {
if (multiselect && event.shiftKey) {
if (multiselect && event.shiftKey && event.ctrlKey) {
nodeIds.push(treeWalker.current.currentNode?.id);
}
while (
Expand All @@ -137,7 +137,7 @@ export default function TreeView({
) {
nextFocusNode = treeWalker.current.currentNode;

if (multiselect && event.shiftKey) {
if (multiselect && event.shiftKey && event.ctrlKey) {
nodeIds.push(nextFocusNode?.id);
}
}
Expand Down

0 comments on commit 253375f

Please sign in to comment.