Little trick to find out your desired keycode
-
prints the code to the ruby console
class KeysTool def onKeyDown(key, rpt, flags, view) puts "key; " + key.to_s + ", repeat; " + rpt.to_s + ", flags; " + flags.to_s end end Sketchup.active_model.select_tool KeysTool.newpaste the above code into webconsole, execute
after that focus from the webconsole to sketchup and pressing keyboard prints respective codes to the console -
no, sorry for causing confusion. this is only helpful when developing tool plugins and you want to use keyboard to control your tool behavior, you need a code of each key so that you can specify what to look for. these codes are nowhere to be found (su ruby api) so only way I found is to run the key discovery tool posted above and pressing keyboard print respective codes to the ruby console.
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