Ticket #1928: v3_escape_cancel.diff
File v3_escape_cancel.diff, 2.0 KB (added by , 11 years ago) |
---|
-
0ad/binaries/data/mods/public/gui/session/input.js
2053 2053 2054 2054 Engine.PostNetworkCommand({"type": "unload-all", "garrisonHolders": garrisonHolders}); 2055 2055 } 2056 function clearSelection() 2057 { 2058 inputState = INPUT_NORMAL; 2059 preSelectedAction = ACTION_NONE; 2060 g_Selection.reset(); 2061 placementSupport.Reset(); 2062 } -
0ad/binaries/data/mods/public/gui/session/session.xml
142 142 <action on="Press">findIdleUnit(["Hero", "Champion", "CitizenSoldier", "Siege", "Warship"]);</action> 143 143 </object> 144 144 145 <!-- Unselects any selected entities --> 146 <object hotkey="selection.cancel"> 147 <action on="Press">clearSelection()</action> 148 </object> 145 149 <!-- ================================ ================================ --> 146 150 <!-- Developer / Debug items --> 147 151 <!-- ================================ ================================ --> -
0ad/binaries/data/config/default.cfg
207 207 hotkey.selection.add = Shift ; Add units to selection 208 208 hotkey.selection.milonly = Alt ; Add only military units to selection 209 209 hotkey.selection.remove = Ctrl ; Remove units from selection 210 hotkey.selection.cancel = Esc ; Un-select all units and cancel building placement 210 211 hotkey.selection.idleworker = Period ; Select next idle worker 211 212 hotkey.selection.idlewarrior = Comma ; Select next idle warrior 212 213 hotkey.selection.offscreen = Alt ; Include offscreen units in selection