sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Key combinations

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 3 Posters 360 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • CadFatherC Offline
      CadFather
      last edited by

      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'?

      1 Reply Last reply Reply Quote 0
      • PixeroP Offline
        Pixero
        last edited by

        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
        
        1 Reply Last reply Reply Quote 0
        • S Offline
          slbaumgartner
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • CadFatherC Offline
            CadFather
            last edited by

            Thanks Guys, i'll have a look at Jan's table. can't believe it's so messy working with the keyboard.

            1 Reply Last reply Reply Quote 0
            • S Offline
              slbaumgartner
              last edited by

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

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement