fix selection with shift to avoid mouse mode. Closes T863