Now recently added items get removed if pressing escape
when the dialog shows up as well (or equivalently clicking 'x').