Comment 3 for bug 1361744

Revision history for this message
Zsombor Egri (zsombi) wrote :

Ok, some correction on the wordings above, somehow I managed to select-delete some text from it :/.

So, what I wanted to say above is that when the long press happens over the file list, the focus is grabbed when the list item is pressed and thus the Popover is opened having the active list item as active focus. Selecting "Rename" from the Popover also grabs the focus, but when the Popover is closed, the focus is restored to its caller (so the Dialog does the same when closed, if the component exists). When the Dialog is opened, the active focus is the list item from the popover, and therefore the "focus: true" assignment is not going to be enough. You must call input.forceActiveFocus() on Dialog completion to grab the focus.