The selection is saved at the keyboard focus loss when pressing the left mouse button on the selection for return.