Changeset 4921 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2012-02-12T16:56:53+01:00 (13 years ago)
Author:
stoecker
Message:

better shortcut parsing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java

    r3973 r4921  
    8282        int shortcut = -1;
    8383
    84         if (mode.equals("data")) {
    85             shortcut = KeyEvent.VK_1;
    86         }
    87         if (mode.equals("layer")) {
    88             shortcut = KeyEvent.VK_2;
    89         }
    90         if (mode.equals("selection")) {
    91             shortcut = KeyEvent.VK_3;
    92         }
    93         if (mode.equals("conflict")) {
    94             shortcut = KeyEvent.VK_4;
    95         }
    96         if (mode.equals("download")) {
    97             shortcut = KeyEvent.VK_5;
    98         }
    99         if (mode.equals("previous")) {
    100             shortcut = KeyEvent.VK_8;
    101         }
    102         if (mode.equals("next")) {
    103             shortcut = KeyEvent.VK_9;
    104         }
     84        /* leave as single line for shortcut overview parsing! */
     85        if (mode.equals("data")) { shortcut = KeyEvent.VK_1; }
     86        else if (mode.equals("layer")) { shortcut = KeyEvent.VK_2; }
     87        else if (mode.equals("selection")) { shortcut = KeyEvent.VK_3; }
     88        else if (mode.equals("conflict")) { shortcut = KeyEvent.VK_4; }
     89        else if (mode.equals("download")) { shortcut = KeyEvent.VK_5; }
     90        else if (mode.equals("previous")) { shortcut = KeyEvent.VK_8; }
     91        else if (mode.equals("next")) { shortcut = KeyEvent.VK_9; }
    10592
    10693        return shortcut;
Note: See TracChangeset for help on using the changeset viewer.