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

    Redefine the Delete key?

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    19 Posts 5 Posters 3.1k 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.
    • thomthomT Offline
      thomthom
      last edited by

      Yes - I'm working on my vertex edit tool. I wanted to be able to hit Delete to erase selected vertices - matching normal SU behaviour.
      But the onKey events doesn't trigger for keys that have shortcuts assigned. So Delete - which is always assigned to Edit->Delete never triggers any event in my tool.
      (At the moment I have hooked into Backspace - but that's just a annoying workaround.)

      Since my Vertex tool have a set of sub-tools like Move, Scale, Reset and Select I created a set of proxy methods. For instance - I added a menu item that calls proxy_move. When it is invoked while my tool is active it will activate the vertex move tool - if my tool is not active it activates the native SU tool So a user can then change his/hers shortcut for Move to this proxy command so the familiar shortcuts works inside my tool as well.

      But I can't find any way to hook into the Delete key. 😞

      Thomas Thomassen β€” SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        Why not use E[rase] as the 'erase key' - it matches M[ove], S[cale] etc ?

        TIG

        1 Reply Last reply Reply Quote 0
        • thomthomT Offline
          thomthom
          last edited by

          Because I'm also making an Eraser tool - similar to SU's native Eraser tool.

          Thomas Thomassen β€” SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            Aah !
            How about something like shift+E, ctrl+E or alt+E[rase] to erase individual ones ?
            However, I think that Backspace is a good compromise with Delete being unavailable to you...
            πŸ˜•

            TIG

            1 Reply Last reply Reply Quote 0
            • Chris FullmerC Offline
              Chris Fullmer
              last edited by

              Backspace works well I think.

              In 3dsmax, delete and backspae server different purposes, but both delete things. I think people with max background will have no problems getting used to it.

              Lately you've been tan, suspicious for the winter.
              All my Plugins I've written

              1 Reply Last reply Reply Quote 0
              • thomthomT Offline
                thomthom
                last edited by

                I just realised that using the Backspace would interfere with the VCB input - as users can use Backspace to erase input they've entered...

                Thomas Thomassen β€” SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

                1 Reply Last reply Reply Quote 0
                • TIGT Offline
                  TIG Moderator
                  last edited by

                  How about Ctrl+Backspace or Ctrl+Delete ?

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • thomthomT Offline
                    thomthom
                    last edited by

                    I'm thinking that I might leave this for the user to configure.

                    Thomas Thomassen β€” SketchUp Monkey & Coding addict
                    List of my plugins and link to the CookieWare fund

                    1 Reply Last reply Reply Quote 0
                    • X Offline
                      xrok1
                      last edited by

                      just a thought, can you not remove it from SU shortcut list when your script starts so you have access then return it to SU when your script exits?

                      β€œThere are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                      http://www.Twilightrender.com try it!

                      1 Reply Last reply Reply Quote 0
                      • thomthomT Offline
                        thomthom
                        last edited by

                        @xrok1 said:

                        just a thought, can you not remove it from SU shortcut list when your script starts so you have access then return it to SU when your script exits?

                        No - You can't even redefine it from the SU UI. It won't let you.

                        Thomas Thomassen β€” SketchUp Monkey & Coding addict
                        List of my plugins and link to the CookieWare fund

                        1 Reply Last reply Reply Quote 0
                        • X Offline
                          xrok1
                          last edited by

                          πŸ˜† i removed it from the edit/delete shortcut and i couldn't even reassign it. had to open another copy of SU. πŸ˜†

                          β€œThere are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                          http://www.Twilightrender.com try it!

                          1 Reply Last reply Reply Quote 0
                          • thomthomT Offline
                            thomthom
                            last edited by

                            ?
                            So one can remove the shortcut? But not reassign it? Nor even restore it to the SU default? πŸ˜• ❓

                            Thomas Thomassen β€” SketchUp Monkey & Coding addict
                            List of my plugins and link to the CookieWare fund

                            1 Reply Last reply Reply Quote 0
                            • X Offline
                              xrok1
                              last edited by

                              you can remove it through preferences>shortcuts, by highlighting it and hiiting the - button. but no i couldn't reassign to edit>delete after πŸ˜•

                              β€œThere are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                              http://www.Twilightrender.com try it!

                              1 Reply Last reply Reply Quote 0
                              • X Offline
                                xrok1
                                last edited by

                                i tried to fool it with ascii, no luck.
                                btw, how is your script coming along? πŸŽ‰

                                β€œThere are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                                http://www.Twilightrender.com try it!

                                1 Reply Last reply Reply Quote 0
                                • thomthomT Offline
                                  thomthom
                                  last edited by

                                  Starting to shape up. I'll be making a post about it this week.

                                  Thomas Thomassen β€” SketchUp Monkey & Coding addict
                                  List of my plugins and link to the CookieWare fund

                                  1 Reply Last reply Reply Quote 0
                                  • C Offline
                                    caronte01
                                    last edited by

                                    Hi Thom

                                    Have you tested for compatibility on the mac. Remember that the default key in the mac to erase stuff is backspace, not delete.

                                    1 Reply Last reply Reply Quote 0
                                    • thomthomT Offline
                                      thomthom
                                      last edited by

                                      No - not yet tested OSX.

                                      Thomas Thomassen β€” SketchUp Monkey & Coding addict
                                      List of my plugins and link to the CookieWare fund

                                      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