GUI: Enhanced PopUp behaviour
|Reported by:||jvprat||Owned by:||sev-|
The current Gui's PopUp behavior is strange in some cases. The attached patch tries to solve them:
- When pressing ESC, the first entry is selected.
- When clicking outside the entries list, the last highlighted entry is returned. The expected behavior (for me) was to return to the previous selection.
The current patch returns to the previous selection when moving the mouse outside the list. If you want I can change it to maintain the last highlighted entry and just cancel the selection when doing the click outside the list.
Ticket imported from: #1622564. Ticket imported from: patches/700.