Ticket #1928: v2_escape_cancel.diff

File v2_escape_cancel.diff, 1.3 KB (added by Josh, 11 years ago)

Bug fixes

  • 0ad/binaries/data/config/default.cfg

     
    207207hotkey.selection.add = Shift                ; Add units to selection
    208208hotkey.selection.milonly = Alt              ; Add only military units to selection
    209209hotkey.selection.remove = Ctrl              ; Remove units from selection
     210hotkey.selection.cancel = Esc               ; Un-select all units and cancel building placement
    210211hotkey.selection.idleworker = Period        ; Select next idle worker
    211212hotkey.selection.idlewarrior = Comma        ; Select next idle warrior
    212213hotkey.selection.offscreen = Alt            ; Include offscreen units in selection
  • 0ad/binaries/data/mods/public/gui/session/input.js

     
    10361036        recalculateStatusBarDisplay();
    10371037    }
    10381038
     1039    if (ev.hotkey == "selection.cancel")
     1040    {
     1041        inputState = INPUT_NORMAL;
     1042        preSelectedAction = ACTION_NONE;
     1043        g_Selection.reset();
     1044        placementSupport.Reset();
     1045    }
    10391046    // State-machine processing:
    10401047
    10411048    switch (inputState)