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.new
paste 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.
Advertisement