[Maurizio] setSelection now takes into account the direction of the selection