Jump to content
Sign in to follow this  
kiryha

Catch CTR+click in shelf tool

Recommended Posts

How can I determinate if a user has pressed a CTR key clicking on custom shelf tool? I found this topic in this topic in the documentation but confused how to apply this.
I need to run a different function if a user pressed CTR with a click on the shelf tool.

Share this post


Link to post
Share on other sites

Use it in you conde:

    SHIFT_CLK   = kwargs["shiftclick"]
    CTRL_CLK    = kwargs["ctrlclick"]
    ALT_CLK     = kwargs["altclick"]
 

Cheers!

G

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×