Skip to content

Commit 1129634

Browse files
committed
chore: use custom control key logic in all interaction managers
1 parent 8e317ce commit 1129634

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/core/src/interactionMode/ClickArrowToExpandInteractionManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class ClickArrowToExpandInteractionManager
3030
onClick: e => {
3131
actions.focusItem();
3232
if (e.shiftKey) {
33-
actions.selectUpTo(!e.ctrlKey);
33+
actions.selectUpTo(!isControlKey(e));
3434
} else if (isControlKey(e)) {
3535
if (renderFlags.isSelected) {
3636
actions.unselectItem();

packages/core/src/interactionMode/ClickItemToExpandInteractionManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class ClickItemToExpandInteractionManager implements InteractionManager {
2828
onClick: e => {
2929
actions.focusItem();
3030
if (e.shiftKey) {
31-
actions.selectUpTo(!e.ctrlKey);
31+
actions.selectUpTo(!isControlKey(e));
3232
} else if (isControlKey(e)) {
3333
if (renderFlags.isSelected) {
3434
actions.unselectItem();

packages/core/src/interactionMode/DoubleClickItemToExpandInteractionManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class DoubleClickItemToExpandInteractionManager
3030
onClick: e => {
3131
actions.focusItem();
3232
if (e.shiftKey) {
33-
actions.selectUpTo(!e.ctrlKey);
33+
actions.selectUpTo(!isControlKey(e));
3434
} else if (isControlKey(e)) {
3535
if (renderFlags.isSelected) {
3636
actions.unselectItem();

0 commit comments

Comments
 (0)