Menu

#41 Templates: fix Enter key handling in dockable

closed-fixed
None
5
2008-11-30
2008-11-25
Nick Clarke
No

Patch for Templates plugin - fix keyboard handling in dockable panel.

With this patch, the Enter key now applies the selected template if it's a leaf node, or expands the current node if it's a folder, instead of inserting a newline in the text area.

Discussion

  • Nick Clarke

    Nick Clarke - 2008-11-25

    Patch against templates/TemplateDockable.java

     
  • Steve Jakob

    Steve Jakob - 2008-11-29
    • assigned_to: nobody --> sjakob
     
  • Steve Jakob

    Steve Jakob - 2008-11-30

    Since the ENTER key is the only key being handled by the dockable, I removed the KeyListener-based implementation and used a key binding instead. This results in the same functionality as provided by Nick's patch.

    Changed in revision 14121.

     
  • Steve Jakob

    Steve Jakob - 2008-11-30
    • status: open --> closed-fixed
     

Log in to post a comment.