https://bugs.kde.org/show_bug.cgi?id=433991
Bug ID: 433991 Summary: OverlaySheet: Unable to set focus to a component on sheet opened Product: frameworks-kirigami Version: Master Platform: Other OS: Other Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: notm...@gmail.com Reporter: isma...@gmail.com Target Milestone: Not decided SUMMARY This was introduced on https://invent.kde.org/frameworks/kirigami/-/merge_requests/143. To make the Esc capture work, currently the focus has to be forced to the Overlay Sheet item. This happens after signal `onSheetOpenChanged` has been raised, so it overrides any previous focus the user code may have set also on this signal. Or at best there would be a race condition. TEST CASE PSEUDOCODE (cannot test it right now) Kirigami.OverlaySheet { onSheetOpenChanged: { if (sheetOpen) { myText.forceActiveFocus() // will be overriden } } QQC2.TextField { id: myText } } OBSERVED RESULT The internal Item does not gain focus EXPECTED RESULT The internal Item should gain focus -- You are receiving this mail because: You are watching all bug changes.