Menu

#85 Clicking on error breaks key bindings

2: Annoying
closed-fixed
6
2002-07-29
2002-07-26
No

Clicking on a compiler error in the Compiler Error
panel highlights the corresponding line in the source
and sends the focus back to the DefinitionsPane, but it
appears to break key bindings-- arrow keys don't work,
nor does backspace/delete, etc. It seems like all
configurable key bindings are broken (though F5
works?), while most letter keys work.

Possibly an issue with the KeyBindingManager?

Discussion

  • Charles Reis

    Charles Reis - 2002-07-29

    Logged In: YES
    user_id=429731

    This turned out to be because the KeyBindingManager was
    calling actionPerformed with a null ActionEvent. For our
    actions, this isn't a problem, but for default ones (like
    the arrow keys), no source component could be found, so
    nothing happened. Instead, we now trigger an ActionEvent
    with SwingUtilities.notifyAction().

     
  • Charles Reis

    Charles Reis - 2002-07-29
    • status: open --> closed-fixed
     

Log in to post a comment.