Does VK_DELETE within onKeyDown() work on MAC?

Hi,

I don’t get anything when pressing “Delete” on a Mac with code below…Help!

module RafaelRivera
class Test
  def onKeyDown(key, repeat, flags, view)
    puts "onKeyDown: key = #{key}" # Delete doesn't put anything on a Mac.
  end #def
end #class
end #module

Sketchup.active_model.select_tool RafaelRivera::Test.new

Some keys only fire the onKeyUp() callbacks. It’s always been like this.

1 Like

Thanks!

Using onKeyUp() solved my problem.

1 Like

This jogged my memory as I recently was doing some work on Vertex Tools and I found this (very old) comment:

2 Likes