Changeset 12497 in josm


Ignore:
Timestamp:
2017-07-23T15:51:43+02:00 (4 weeks ago)
Author:
Don-vip
Message:

fix #8340 - shortcuts using up/down/left/right arrows not reassignable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/shortcut/PrefJPanel.java

    r11017 r12497  
    101101        // Assume all known keys are declared in KeyEvent as "public static int VK_*"
    102102        for (Field field : KeyEvent.class.getFields()) {
    103             if (field.getName().startsWith("VK_")) {
     103            // Ignore VK_KP_DOWN, UP, etc. because they have the same name as VK_DOWN, UP, etc. See #8340
     104            if (field.getName().startsWith("VK_") && !field.getName().startsWith("VK_KP_")) {
    104105                try {
    105106                    int i = field.getInt(null);
Note: See TracChangeset for help on using the changeset viewer.