Skip to content
Snippets Groups Projects
Commit 55ace881 authored by Fatih Uzunoğlu's avatar Fatih Uzunoğlu Committed by Hugo Beauzée-Luyssen
Browse files

qml: don't reset focus when reason is the same

parent ae390cea
No related branches found
No related tags found
Loading
Pipeline #178169 passed with stage
in 19 minutes
......@@ -55,6 +55,9 @@ function get(dict, key, defaultValue) {
// NOTE: This allows us to force another 'reason' even when the item has activeFocus.
function enforceFocus(item, reason) {
if (item.activeFocus && item.focusReason === reason)
return
item.focus = false;
item.forceActiveFocus(reason);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment