Jump to content
Sign in to follow this  
danielsweeney

return modifier keystroke (ctrl, shift etc) with externaldragdrop.py

Recommended Posts

Hi Everyone.

Has Anyone got any ideas on how to do this? or point me in the right direction of any further reading. Google searching is not coming up with anything.

 

how can I return if a ctrl or shift keystroke is pressed when dropping files in my externaldragdrop.py so i can define different functions depending on modifier key pressed.

I'm using the def dropAccept()

does anyone know if this returns any other information other than files.

I also cant find any information in the docs on this function.

 

cheers for the help.

 

Daniel

 

Share this post


Link to post
Share on other sites

just so people know.

 

I could not find a way to do this with the build-in functions in python 2.7.

I had to download a library to do this.

the Keyboard python Library to be exact.

 

cheers

Share this post


Link to post
Share on other sites

just guessing, but have you tried to print kwargs to see what it provides?

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  

×