python shelf tool with two hotkeys/ ctrl+hotkey

   963   0   1
User Avatar
Member
31 posts
Joined: April 2015
Online
hi - while writing a python script i run into a problem: with kwargs I can recognize if a shelf tool was activated by clicking in combination with the ctrl key - so by clicking on it in the shelf tool

but is there a way to recognize if the script was activated by ctrl and its HOTKEY?
if that's not possible - 2. how can I execute a second function within the same script with a different hotkey - or 3.: listen to the ctrl button to set a global variable so that my script knows that ctrl was pressed while the function was activated

thank you for any information about that!
  • Quick Links