Fix left-select of headers

Left-clicking headers should only change the selection if no selection
is available OR if the available selection does not contain the row or
column that was left-clicked.