OS:Window x64 VERSION:26.1.189
When I press the tab key twice, the press and release events are only executed once each.
press tab and up tab === > onKeyDown run but onKeyUp not run
press tab and up tab === > onKeyUp run but onKeyDown not run
class TestTool
def onKeyUp(key, repeat, flags, view)
puts "key up #{key} #{repeat} #{flags} #{view} #{Time.now}"
end
def onKeyDown(key, repeat, flags, view)
puts "key down #{key} #{repeat} #{flags} #{view} #{Time.now}"
end
end
Sketchup.active_model.select_tool TestTool.new
I pressed the tab key six times
key down 9 1 0 #<Sketchup::View:0x0000024a12f644c0> 2026-02-28 10:05:13 +0800
key up 9 1 49152 #<Sketchup::View:0x0000024a12f644c0> 2026-02-28 10:05:15 +0800
key down 9 1 0 #<Sketchup::View:0x0000024a12f644c0> 2026-02-28 10:05:17 +0800
key up 9 1 49152 #<Sketchup::View:0x0000024a12f644c0> 2026-02-28 10:05:19 +0800
key down 9 1 0 #<Sketchup::View:0x0000024a12f644c0> 2026-02-28 10:05:21 +0800
key up 9 1 49152 #<Sketchup::View:0x0000024a12f644c0> 2026-02-28 10:05:22 +0800
OS:Window x64 VERSION:26.1.189
When I press the tab key twice, the press and release events are only executed once each.
press tab and up tab === > onKeyDown run but onKeyUp not run
press tab and up tab === > onKeyUp run but onKeyDown not run
I pressed the tab key six times