Changeset 6424 in josm
- Timestamp:
- 2013-11-29T19:25:23+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/io
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/BasicUploadSettingsPanel.java
r6408 r6424 99 99 } 100 100 101 public void setUploadCommentDownFocusTraversalHandler(final Action handler) { 102 hcbUploadComment.getEditor().addActionListener(handler); 103 hcbUploadComment.getEditor().getEditorComponent().addKeyListener( 101 public void setUploadTagDownFocusTraversalHandlers(final Action handler) { 102 setHistoryComboBoxDownFocusTraversalHandler(handler, hcbUploadComment); 103 setHistoryComboBoxDownFocusTraversalHandler(handler, hcbUploadSource); 104 } 105 106 public void setHistoryComboBoxDownFocusTraversalHandler(final Action handler, final HistoryComboBox hcb) { 107 hcb.getEditor().addActionListener(handler); 108 hcb.getEditor().getEditorComponent().addKeyListener( 104 109 new KeyListener() { 105 110 @Override 106 111 public void keyTyped(KeyEvent e) { 107 112 if (e.getKeyCode() == KeyEvent.VK_TAB) { 108 handler.actionPerformed(new ActionEvent(hcb UploadComment,0, "focusDown"));113 handler.actionPerformed(new ActionEvent(hcb, 0, "focusDown")); 109 114 } 110 115 } -
trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java
r6419 r6424 227 227 ); 228 228 229 pnlBasicUploadSettings.setUpload CommentDownFocusTraversalHandler(229 pnlBasicUploadSettings.setUploadTagDownFocusTraversalHandlers( 230 230 new AbstractAction() { 231 231 @Override
Note:
See TracChangeset
for help on using the changeset viewer.