Skip to content

Add dynamic Shift-to-delete custom cursor and tooltip refresh#68

Open
Darkforge317 wants to merge 3 commits into
Toofifty:masterfrom
Darkforge317:shift-click-tooltip
Open

Add dynamic Shift-to-delete custom cursor and tooltip refresh#68
Darkforge317 wants to merge 3 commits into
Toofifty:masterfrom
Darkforge317:shift-click-tooltip

Conversation

@Darkforge317

Copy link
Copy Markdown

Overview

Implements a responsive UX improvement for task rows, providing instant feedback when preparing to remove a task and its descendants via Shift-click.

Changes

  • Instant Tooltip Refresh: Implemented a global KeyEventDispatcher to bypass Swing focus limits, forcing the tooltip container to update state instantly on Shift press/release without requiring mouse movement.
  • Contextual Trash Cursor: Added a custom trash.png cursor state that maps seamlessly across all sub-components within a task row layout while Shift is active.
  • State Persistence: Added a multi-component MouseAdapter hover loop to ensure the custom cursor persists when dragging across adjacent task rows while maintaining a held Shift key.
  • Bug Fix: Fixed an inverted null-check constraint within addPrereqsFromContext() that was blocking automated prerequisite menu lookups.

"Shift-click to remove task and children" added as an alternative tooltip if holding shift while hovering over a row. This functionality previously had no indication of ever existing until now.
Display a trash icon when holding shift over a task. Makes it more obvious and is friendlier UX.
Cleaned up by adding imports for things that had direct references.
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.

1 participant