Bug 472466

Summary: Bug: After switch between Timelines or perfom "Find Action...", move selection track with arrow key will not work.
Product: [Applications] kdenlive Reporter: Mat. <master.lee915>
Component: User Interface & MiscellaneousAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 23.04.2   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Showing the issue.
Showing the blue focus line.

Description Mat. 2023-07-21 14:15:03 UTC
Created attachment 160425 [details]
Showing the issue.

SUMMARY

Bug: After switch between Timelines or perfom "Find Action...", move selection track with arrow key will not work.

STEPS TO REPRODUCE
1. Open and close "Find Action..." with default keyboard shortcut (Ctrl + Alt + I) or in Menubar, "Help" or "Project" > Find Action...

Or

Create new sequence using exactly this path, from Menu bar: Project > Add Sequence...
2. Use the arrow keys to navigate between selection tracks.

OBSERVED RESULT
It isn't possible select track with arrow key, even the focus showing to the timeline (blue line).

I suppose the focus doesn't really return to timeline, actually, because if you toggle to Clip Monitor and to Project Monitor, pressing "T" (default keyboard shortcut) two times, the arrow keys back to select track.

EXPECTED RESULT
It should possible navigate between selection track after perform "Find Action..." or "Add Sequence..." (from Menubar button).

SOFTWARE/OS VERSIONS
Windows: Windows 10 Version 2009 (x86_64)
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.9 (built against 5.15.9)
Comment 1 Mat. 2023-07-21 14:16:36 UTC
Created attachment 160426 [details]
Showing the blue focus line.
Comment 2 Jean-Baptiste Mardelle 2023-07-22 06:44:44 UTC
Git commit a4385ba1380008cdd8a7c97e98999f86c48c7784 by Jean-Baptiste Mardelle.
Committed on 22/07/2023 at 06:43.
Pushed by mardelle into branch 'release/23.08'.

For some reason, the timeline QQuickWidget does not receive EnterEvent after another dialog is opened/closed like Appp Command bar.
So manually enforce focus with a timer event

M  +1    -1    src/mainwindow.cpp
M  +1    -1    src/mainwindow.h
M  +10   -5    src/timeline2/view/timelinewidget.cpp
M  +1    -0    src/timeline2/view/timelinewidget.h

https://invent.kde.org/multimedia/kdenlive/-/commit/a4385ba1380008cdd8a7c97e98999f86c48c7784