Skip to content

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

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

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

…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.
@muaz978 muaz978 force-pushed the feature/grid-triple-click-focus branch from 5782830 to 3a9cd71 Compare July 1, 2026 08:44
@muaz978

muaz978 commented Jul 1, 2026

Copy link
Copy Markdown
Author

Rebased this branch onto the latest main. This is purely a sync, no functional changes: it just confirms this stays conflict-free and cleanly mergeable against current main.

@niksedk

niksedk commented Jul 1, 2026

Copy link
Copy Markdown
Member

Sorry, I'm not too sure about this... will close this for now.

@niksedk niksedk closed this Jul 1, 2026
@muaz978 muaz978 deleted the feature/grid-triple-click-focus branch July 1, 2026 13:25
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