trmdi added a comment.
In D18717#404861 <https://phabricator.kde.org/D18717#404861>, @mvourlakos wrote: > @trmdi can you confirm me the following for your code ? > > 1. When a layout is loaded for first time then "global shortcuts based on position" are applied based on Latte set priority for which view to be forwarded > 2. When the user changed the isPreferredForShortcuts for first time afterwards [1] is never used again EXCEPT if the user set the property ``` preferredForShortcutsTouched=false ``` > > on its own > > Is this what you wanted to achieve? > > Note: this is important, the preferredForShortcutsTouched property must be moved from universalsettings to layout My code works like this: 1, if the user has never touched the Behavior > Activate... checkbox, Latte would automatically find the best view. (Not only the first time) Yes, this should move to the layout class. 2, once he touched it, latte would remember that, and follow his setting. What do you think? REPOSITORY R878 Latte Dock REVISION DETAIL https://phabricator.kde.org/D18717 To: trmdi, mvourlakos Cc: plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart