Bug 362789 - Layer docker loses focus while renaming in floating mode (undocked mode)
Summary: Layer docker loses focus while renaming in floating mode (undocked mode)
Status: RESOLVED UPSTREAM
Alias: None
Product: krita
Classification: Applications
Component: Usability (show other bugs)
Version: git master (please specify the git hash!)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-07 19:07 UTC by Raghavendra kamath
Modified: 2017-09-28 14:40 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
video demonstrating the issue (1.29 MB, video/mp4)
2016-05-07 19:08 UTC, Raghavendra kamath
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raghavendra kamath 2016-05-07 19:07:14 UTC
When the layer docker is undocked and kept floating above the canvas or other place, it becomes near impossible to rename a layer, as it constantly loses focus and the text entry field is reset . even if we trigger the text entr field by pressing the f2 button , the moment we type text it loses the focus and the canvas get's in focus thus triggering the keyboard shortcuts. Double clicking on the layer name is not usefull as the text field is de selected the moment we double click making it nearly impossible to rename .

P.S. I also assume that this focus issue is shared with other dockers as well , which need thorough testing 

Reproducible: Always

Steps to Reproduce:
1.Open krita and a new document, then add two or three layers 
2.Undock the layer docker and keep it floating somewhere above the canvas
3.double click ont he layer name to trigger text field for renaming
4. if that doesn't work press f2 to trigger text input field, then start typing

Actual Results:  
the focus of the text input field is lost immediately when it is triggered thus making it impossible to rename a layer when layer docker is in floating mode

Expected Results:  
layer docker or any component shouldn't loose focus while in free floating mode

I have made a video fo the problem, notice the title flicker changes itself as if it is out of focus and greyed out. Also see that the text field is gone as soon as it is triggered. -> https://dl.dropboxusercontent.com/u/37777793/focus-issue.mp4 (i'll upload this file to bug tracker too)
Comment 1 Raghavendra kamath 2016-05-07 19:08:42 UTC
Created attachment 98836 [details]
video demonstrating the issue
Comment 2 Halla Rempt 2016-12-08 13:24:41 UTC
Actually... That works here. If it doesn't work for you, I'm again suspecting a Qt 5.6 vs 5.7 issue.
Comment 3 Raghavendra kamath 2016-12-09 07:06:00 UTC
Yes this works in appimage and not in the git build built using qt present in my system i.e. 5.7 so i think you are right this is an issue with krita built with 5.7
Comment 4 Halla Rempt 2017-09-28 14:40:09 UTC
This works fine again with Qt 5.9