I'm currently working on a python tool using a modal operator.
Now I know to finish the operation I can use:

```
if event.type == 'LEFTMOUSE':
    return {'FINISHED'}

```

However it seems not to count as a `'LEFTMOUSE'` when I click (select) an object! I also tried `'SELECTMOUSE'` which doesn't do anything.

What I would like to do is store the clicked object, and then automatically finish the modal operator.

Any ideas? Thanks in advance!