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!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    Shortcuts and keys in rubys collide

    Scheduled Pinned Locked Moved Developers' Forum
    9 Posts 5 Posters 622 Views 5 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.
    • PixeroP Offline
      Pixero
      last edited by

      Is there a way of having your own set of keys while in a ruby, and having the same shortcuts keys "deactivated" while that ruby is active" so they don't collide? I hope I make myself clear. 😕 I'm running out of free keys!

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by

        You are being clear, but I haven't found a way to suspend the shortcuts for any Tool I have written.

        Hi

        1 Reply Last reply Reply Quote 0
        • AdamBA Offline
          AdamB
          last edited by

          Why don't you plug in another keyboard and double the number of keys.

          Developer of LightUp Click for website

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

            @adamb said:

            Why don't you plug in another keyboard and double the number of keys.

            🤣

            Seriously, could it be done through the SDK with some sort of connection so that it could be used in rubys?

            1 Reply Last reply Reply Quote 0
            • tbdT Offline
              tbd
              last edited by

              no.

              if you use too many keys than something is wrong with the design. try adding a UI (SU users are more visual), use multiple keyboard press (1st M press enter menu, 2nd M press move, ...)

              SketchUp Ruby Consultant | Podium 1.x developer
              http://plugins.ro

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

                What I'm after is a way of moving the camera in a game like way with the w,a,s,d keys.
                I could use the arrow keys but adding extra keys for elevation and such wouldnt be as easy.

                1 Reply Last reply Reply Quote 0
                • tbdT Offline
                  tbd
                  last edited by

                  how about using Control as modifier ?

                  SketchUp Ruby Consultant | Podium 1.x developer
                  http://plugins.ro

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

                    @unknownuser said:

                    how about using Control as modifier ?

                    Would "Caps Lock" work as a modifier?
                    Or would the "standard" shortcut keys still be enabled?

                    Or would it be possible using a keydown on Ctrl but no keyup in script?

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      RickW
                      last edited by

                      You could capture keystrokes in a modal webDialog - this will override any SU keyboard shortcuts - but beware irritating users who are used to using a shortcut for "select" that effectively cancels any active tool. Either query the shortcut list for the "select" shortcut and use it to cancel your modal webDialog, or create a really obvious "cancel" button or key.

                      RickW
                      [www.smustard.com](http://www.smustard.com)

                      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