Avoid invisible rows in selection by keyboard