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! 
Advertisement


 
                             
                             
                             
                             
                             
                             
                            