Bug 400889

Summary: View panel focuses parent on right click
Product: [Applications] krusader Reporter: Robert Silvia <robsilvia>
Component: krviewerAssignee: Krusader Bugs Distribution List <krusader-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: alex.bikadorov, davide, krusader-bugs-null, nikita+kde
Priority: NOR Keywords: triaged
Version First Reported In: 2.7.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Robert Silvia 2018-11-09 20:59:19 UTC
SUMMARY
Right clicking inside the view panel is focusing the parent panel causing any selection to be removed making the context menu unusable in the view panel.

STEPS TO REPRODUCE
1. Toggle on the view panel.
2. Select a text file to be displayed.
3. In the view panel select some text.
4. Right click the selected text to copy it.

OBSERVED RESULT
The parent is refocused and the view panel is redrawn. Any selected text is deselected and the cursor position is brought to the top of the file.

EXPECTED RESULT
Focus stays in the view panel allowing selected text to be copied to clip board.

SOFTWARE/OS VERSIONS
Linux 4.18.0
Kubuntu 18.10
KDE Plasma 5.13.5
KDE Frameworks 5.50.0
Qt 5.11.1 (built against 5.11.1)
Comment 1 Alex Bikadorov 2018-11-11 13:58:35 UTC
I can confirm the buggy behaviour.
Comment 2 Nikita Melnichenko 2018-11-15 07:07:02 UTC
I confirm too.
Comment 3 Davide Gianforte 2020-05-01 20:54:16 UTC
Can you confirm on a newer version (2.7+)?

Thanks
Comment 4 Robert Silvia 2020-05-02 09:27:55 UTC
I upgraded last weekend to Kubuntu 20.04 (krusader v2.7.2), I was quite pleased to find that the issue is no longer occurring.