Ticket #1928: v2_escape_cancel.diff
File v2_escape_cancel.diff, 1.3 KB (added by , 11 years ago) |
---|
-
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 -
0ad/binaries/data/mods/public/gui/session/input.js
1036 1036 recalculateStatusBarDisplay(); 1037 1037 } 1038 1038 1039 if (ev.hotkey == "selection.cancel") 1040 { 1041 inputState = INPUT_NORMAL; 1042 preSelectedAction = ACTION_NONE; 1043 g_Selection.reset(); 1044 placementSupport.Reset(); 1045 } 1039 1046 // State-machine processing: 1040 1047 1041 1048 switch (inputState)