Skip to content

Subtitle grid: triple-click a row to focus the text box without seeking (#11602)#11984

Open
muaz978 wants to merge 1 commit into
SubtitleEdit:mainfrom
muaz978:feature/grid-triple-click-focus
Open

Subtitle grid: triple-click a row to focus the text box without seeking (#11602)#11984
muaz978 wants to merge 1 commit into
SubtitleEdit:mainfrom
muaz978:feature/grid-triple-click-focus

Conversation

@muaz978

@muaz978 muaz978 commented Jun 29, 2026

Copy link
Copy Markdown

Subtitle grid: triple-click to focus the text box without seeking

Implements suggestion #3 from #11602.

Problem

There was no quick way to jump from a grid row straight into editing its text without also moving the video position. Double-click runs the configured action (which seeks), and a third click just re-fired the single-click action.

Change

A triple-click on a grid row now moves keyboard focus to the edit text box and leaves the video position untouched.

Implementation notes

  • The third click is detected in SubtitleGrid_PointerPressed via PointerPressedEventArgs.ClickCount. When count reaches 3 on a valid row with the left button, it cancels the pending single-click timer and marks the upcoming tap as focus-only, then selects the row.
  • Both the single-tap and double-tap handlers honour that marker (the third click can surface as either depending on the platform's gesture counting), focusing the edit text box instead of running the seek action.
  • The marker is cleared at the start of every fresh click sequence (click count 1), so a missed third tap cannot leave it stuck.
  • No seeking, no playback change, and the existing single/double-click actions are unchanged.

Files

  • src/ui/Features/Main/MainViewModel.cs

🤖 Generated with Claude Code

…ng (SubtitleEdit#11602)

A triple-click on a grid row now moves keyboard focus to the edit text box and
leaves the video position untouched. Previously the third click arrived as a
plain Tapped and re-fired the configured single-click action (which seeks). The
third click is detected in the pointer-pressed handler via its click count,
which cancels the pending single-click and marks the upcoming Tapped (or, on
some platforms, DoubleTapped) as focus-only. The marker self-heals on the next
fresh click sequence if that third tap is ever missed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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