# Clearing selection with selection tool

**URL:** <https://discuss.avogadro.cc/t/clearing-selection-with-selection-tool/5222>\
**Category:** Support\
**Created:** [January 19, 2024, 6:10pm UTC](https://discuss.avogadro.cc/t/clearing-selection-with-selection-tool/5222 "2024-01-19T18:10:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![matterhorn103](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/matterhorn103/32/1751_2.png) [@matterhorn103](https://discuss.avogadro.cc/u/matterhorn103)\
**Post date:** [January 19, 2024, 6:10pm UTC](https://discuss.avogadro.cc/t/clearing-selection-with-selection-tool/5222/1 "2024-01-19T18:10:28Z")

</div>

I was working on the docs and was reminded of something I noticed a while ago.

## Environment Information

Avogadro version: 1.98.1  
Operating system and version: OpenSUSE Tumbleweed

## Expected Behavior

Hovering over the Selection Tool shows a tooltip that says that right-click on the empty field should deselect everything. The docs claim the same thing.

## Actual Behavior

On my system this isn’t the case though – right-click does nothing, and a triple-left-click seems to be what is necessary to deselect, though it is not always necessary for the three to be in rapid succession.

What’s the behaviour on other systems, and what should it be?

---

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [January 20, 2024, 1:33am UTC](https://discuss.avogadro.cc/t/clearing-selection-with-selection-tool/5222/2 "2024-01-20T01:33:36Z")

</div>

I’m not sure what a “triple click” would do … there’s a double-click event … and then the click (mouse press, mouse release) would be processed.

I’d have to think through the logic a bit in `selectiontool` as far as a right click. Should be an easy bug fix, though.

---

<div class="post-metadata">

**Author:** ![matterhorn103](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/matterhorn103/32/1751_2.png) [@matterhorn103](https://discuss.avogadro.cc/u/matterhorn103)\
**Post date:** [January 21, 2024, 2:37pm UTC](https://discuss.avogadro.cc/t/clearing-selection-with-selection-tool/5222/3 "2024-01-21T14:37:46Z")

</div>

How does it work on your mac?

---

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [January 21, 2024, 4:05pm UTC](https://discuss.avogadro.cc/t/clearing-selection-with-selection-tool/5222/4 "2024-01-21T16:05:58Z")

</div>

I don’t have my laptop set up for right clicks. But the recent pull request should clear selection with a right click and release.

---

<div class="post-metadata">

**Author:** ![matterhorn103](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/matterhorn103/32/1751_2.png) [@matterhorn103](https://discuss.avogadro.cc/u/matterhorn103)\
**Post date:** [February 20, 2024, 1:15pm UTC](https://discuss.avogadro.cc/t/clearing-selection-with-selection-tool/5222/5 "2024-02-20T13:15:48Z")

</div>

It didn’t change anything, sadly ☹

> [@ghutchis](#):
>
> I don’t have my laptop set up for right clicks.

So how do you clear the selection without right click? And shouldn’t Ctrl+LeftClick always do right click on a Mac?
