NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #732 (closed defect: fixed)

Opened 2011-08-31T10:34:50-05:00

Last modified 2011-09-01T10:09:02-05:00

Some KeyEvents are getting lost

Reported by: bdezonia Owned by: gharris
Priority: major Milestone: imagej-2.0-alpha5
Component: Event Framework Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking:

Description

When you run animations (from the NEW Image :: Stacks :: Tools :: Start Animation command) you should be able to terminate them by pressing ESC. However they never terminate. I have used the debugger to verify that the Animator::onEvent(KyPressedEvent) is never getting called. Its like at the outermost UI level we are not seeing a key was pressed and thus never adding the events to the EventBus.

Grant I know you made changes to the event handling with the display refactoring. Could you look at this and perhaps address before the alpha5 release this week?

Change History

comment:1 Changed 2011-09-01T10:09:02-05:00 by gharris

  • Status changed from new to closed
  • Resolution set to fixed

I created AWTKeyEventDispatcherGlobal which intercepts all keystrokes in the SystemEventQueue and emits/publishs new KyEvents on the EventBus, using the currently selected ImageDisplay as the display in the KyEvent.

  • GBH

See e329a0b90368736d7f8aa20b9227f186f65642d0, 72561c1b345be439104642cd528feabfc529f73e.