Fix #1763 (selection): raise selectionChanged in more scenarios