In TableDataView, move resetting selectedCell to enterState to allow exi...

...tState to access it before the state changes.
`selectionEnd` should also be set to `null`.
Also the removing of the selection on line 180 can be removed after this change.