<table><tr><td style="">emateli edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-uew5zforc2rslm4/" rel="noreferrer">(Show Details)</a><br />emateli edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-piez3p33jcugme6/" rel="noreferrer">(Show Details)</a><br />emateli added a reviewer: Frameworks.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D7828" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">When creating dialogs with lists or checkboxes the focused item becomes either the list or the checkbox rather than any of the buttons.<br />
In most cases the user would rather interact with the buttons through the keyboard rather than the checkbox.<br />
<br />
This patch checks if any of the buttons has the `isDefault` attribute and then focuses it.</span></div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">A use case where an application sets a default button but the checkbox is still selected instead is Dolphin.<br />
<br />
1. Open more than 1 tab in Dolphin<br />
2. Close Dolphin<br />
<br />
Expected: The quit button is focused<br />
Actual: Checkbox "Do not ask again" is focused</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R236 KWidgetsAddons</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D7828" rel="noreferrer">https://phabricator.kde.org/D7828</a></div></div><br /><div><strong>To: </strong>emateli, Frameworks<br /><strong>Cc: </strong>Frameworks<br /></div>