Fix interaction between select mode and mouse bindings