Ticket #8921: possible_fix.patch
| File possible_fix.patch, 1.3 KB (added by , 13 years ago) |
|---|
-
src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java
52 52 import javax.swing.JPanel; 53 53 import javax.swing.JPopupMenu; 54 54 import javax.swing.KeyStroke; 55 import javax.swing.SwingUtilities; 55 56 import javax.swing.table.DefaultTableModel; 56 57 import javax.swing.text.JTextComponent; 57 58 … … 693 694 // add tags and close window on double-click 694 695 if (e.getClickCount()>1) { 695 696 performTagAdding(); 696 buttonAction(0, null); // emulate OK click and close the dialog 697 SwingUtilities.invokeLater(new Runnable() { 698 @Override public void run() { 699 buttonAction(0, null); // emulate OK click and close the dialog 700 } 701 }); 697 702 } 698 703 // add tags on Shift-Click 699 704 if (e.isShiftDown()) {
