Changeset 18334 in josm for trunk


Ignore:
Timestamp:
2021-12-20T14:20:06+01:00 (2 years ago)
Author:
Don-vip
Message:

fix #21507 - fix autocompletion error with Japanese IME (patch by marcello)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompTextField.java

    r18258 r18334  
    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;
Note: See TracChangeset for help on using the changeset viewer.