Key combinations
-
does anyone know if you can use multiple acc keys? like CTRL+ALT
i looked around and saw nothing, tried with && check but no results (the first key has priority)
another 'sorry can't do'?
-
Maybe something like this:
def onKeyDown(key, repeat, flags, view) if key == altKey altDown = true end #if if key == controlKey controlDown = true end #if if altDown && controlDown == true #do stuff here end end# def def onKeyUp(key, repeat, flags, view) if key == altKey altDown = false end #if if key == controlKey controlDown = false end #if end #def -
The flags argument passed to onKeyDown and onKeyUp tells you the state of the modifier keys. It is a bit mask with bits set for the keys that are pressed. You can figure them out by printing the flag values you get for various combinations. However, I believe they are OS-specific and sometimes hardware dependent.
-
Thanks Guys, i'll have a look at Jan's table. can't believe it's so messy working with the keyboard.
-
@cadfather said:
Thanks Guys, i'll have a look at Jan's table. can't believe it's so messy working with the keyboard.
Yes, messy - but the mess originates in the OS, not SketchUp!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement