Changeset 17962 in josm


Ignore:
Timestamp:
2021-07-08T21:01:25+02:00 (3 years ago)
Author:
Don-vip
Message:

see #20522 - handle both language codes for Hebrew (iw before Java 17, he starting from Java 17)

See https://bugs.openjdk.java.net/browse/JDK-8263202

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/KeyboardUtils.java

    r17333 r17962  
    208208                break;
    209209            case "cs": // Czech
    210             case "he": // Hebrew
     210            case "he": // Hebrew starting from Java 17 - https://bugs.openjdk.java.net/browse/JDK-8263202
     211            case "iw": // Hebrew before Java 17
    211212                // https://en.wikipedia.org/wiki/QWERTZ#Czech_(QWERTZ)
    212213                // https://en.wikipedia.org/wiki/Hebrew_keyboard
  • trunk/test/unit/org/openstreetmap/josm/tools/KeyboardUtilsTest.java

    r17275 r17962  
    1313import java.util.Map.Entry;
    1414
     15import org.junit.jupiter.api.Test;
    1516import org.junit.jupiter.api.extension.RegisterExtension;
    16 import org.junit.jupiter.api.Test;
    1717import org.openstreetmap.josm.testutils.JOSMTestRules;
    1818
     
    7474        testgetCharactersForKeyE00("de", deadCircumflex, deadCircumflex2);
    7575        testgetCharactersForKeyE00("cs", ';');
    76         testgetCharactersForKeyE00("he");
     76        testgetCharactersForKeyE00("he", ';');
     77        testgetCharactersForKeyE00("iw", ';');
    7778        testgetCharactersForKeyE00("hu", '0');
    7879        testgetCharactersForKeyE00("pl");
Note: See TracChangeset for help on using the changeset viewer.