Skip to content

Sev/menu focus fix

username-removed-51285 requested to merge sev/menu_focus_fix into master

When opening a dialog, the active focus chain is deleted. After closing said dialog, the outermost container gets focus, instead of the previously focused element. Only after moving the mouse or using the TAB key, focus is reassigned.

This branch adds a saveFocus() function to the Container class, which recursively saves the focus chain. When the container is focused again with setFocus(), it restores the saved chain.

Merge request reports