Skip to content

[01105] Require cmd/ctrl+click to open links in DataTable cells#3440

Merged
dcrjodle merged 1 commit intomainfrom
plan-01105-Ivy-Framework
Apr 7, 2026
Merged

[01105] Require cmd/ctrl+click to open links in DataTable cells#3440
dcrjodle merged 1 commit intomainfrom
plan-01105-Ivy-Framework

Conversation

@dcrjodle
Copy link
Copy Markdown
Collaborator

@dcrjodle dcrjodle commented Apr 7, 2026

Summary

Changes

Updated handleCellClicked in useCellInteractions.ts to require cmd+click (macOS) or ctrl+click (Windows/Linux) before opening link-cell URLs. Previously, plain clicks on link cells would navigate away, conflicting with cell selection. Updated tests to verify the modifier key requirement.

API Changes

None. The internal callback signature changed to accept GridMouseEventArgs as a second parameter, but the public hook API (handleCellClicked return value) is unchanged since DataEditor's onCellClicked already passes both arguments.

Files Modified

  • src/frontend/src/widgets/dataTables/hooks/useCellInteractions.ts — Added GridMouseEventArgs import, modifier key check, updated callback signature
  • src/frontend/src/widgets/dataTables/hooks/useCellInteractions.test.ts — Rewrote tests to verify modifier key requirement (9 tests)

Commits

@dcrjodle dcrjodle merged commit 0398999 into main Apr 7, 2026
11 of 13 checks passed
@artem-ivy-ai
Copy link
Copy Markdown
Collaborator

Staging removed

Staging environment has been deleted for this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants