Ticket #12440: josm-12440-1.patch

File josm-12440-1.patch, 2.2 KB (added by codesman, 10 years ago)
  • src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    672672            popupMenu.add(rememberLastTags);
    673673        }
    674674
    675         private String code(String text) {
    676             return "<code>" + text + "</code> ";
    677         }
    678 
    679675        @Override
    680676        public void setContentPane(Container contentPane) {
    681677            final int commandDownMask = GuiHelper.getMenuShortcutKeyMaskEx();
    682678            List<String> lines = new ArrayList<>();
    683679            Shortcut sc = Shortcut.findShortcut(KeyEvent.VK_1, commandDownMask);
    684680            if (sc != null) {
    685                 lines.add(code(sc.getKeyText()) + tr("to apply first suggestion"));
     681                lines.add(sc.getKeyText() + " " + tr("to apply first suggestion"));
    686682            }
    687             lines.add(code(KeyEvent.getKeyModifiersText(KeyEvent.SHIFT_MASK)+'+'+KeyEvent.getKeyText(KeyEvent.VK_ENTER))
     683            lines.add(KeyEvent.getKeyModifiersText(KeyEvent.SHIFT_MASK)+'+'+KeyEvent.getKeyText(KeyEvent.VK_ENTER) + " "
    688684                    +tr("to add without closing the dialog"));
    689685            sc = Shortcut.findShortcut(KeyEvent.VK_1, commandDownMask | KeyEvent.SHIFT_DOWN_MASK);
    690686            if (sc != null) {
    691                 lines.add(code(sc.getKeyText()) + tr("to add first suggestion without closing the dialog"));
     687                lines.add(sc.getKeyText() + " " + tr("to add first suggestion without closing the dialog"));
    692688            }
    693689            final JLabel helpLabel = new JLabel("<html>" + Utils.join("<br>", lines) + "</html>");
    694690            helpLabel.setFont(helpLabel.getFont().deriveFont(Font.PLAIN));
    695             contentPane.add(helpLabel, GBC.eol().fill(GridBagConstraints.HORIZONTAL).insets(1, 2, 1, 2));
     691            contentPane.add(helpLabel, GBC.eol().fill(GridBagConstraints.HORIZONTAL).insets(10, 10, 10, 10));
    696692            super.setContentPane(contentPane);
    697693        }
    698694