Ticket #21507: 21507.patch

File 21507.patch, 805 bytes (added by marcello@…, 4 years ago)

patch

  • src/org/openstreetmap/josm/gui/tagging/ac/AutoCompTextField.java

     
    157157        if (unSelected.length() <= oldText.length())
    158158            // do not autocomplete on control or deleted chars
    159159            return;
     160        if (getInputMethodRequests().getCommittedTextLength() != getDocument().getLength()) {
     161            // do not autocomplete if there is uncommitted text (breaks Microsoft Japanese IME, see #21507)
     162            return;
     163        }
    160164        if (!AUTOCOMPLETE_NUMBERS && IS_NUMBER.matcher(newText).matches())
    161165            return;
    162166