Ticket #1870: stop-hotkey.patch

File stop-hotkey.patch, 1.9 KB (added by alpha123, 11 years ago)
  • binaries/data/config/default.cfg

     
    171171hotkey.showsky = "Alt+Z"                    ; Toggle sky
    172172
    173173; > CAMERA SETTINGS
    174 hotkey.camera.reset = "H"                                   ; Reset camera rotation to default.
     174hotkey.camera.reset = "R"                                   ; Reset camera rotation to default.
    175175hotkey.camera.follow = "F"                                  ; Follow the first unit in the selection
    176176hotkey.camera.zoom.in = Plus, Equals, NumPlus               ; Zoom camera in (continuous control)
    177177hotkey.camera.zoom.out = Minus, NumMinus                    ; Zoom camera out (continuous control)
     
    243243
    244244; > SESSION CONTROLS
    245245hotkey.session.kill = Delete                ; Destroy selected units
     246hotkey.session.stop = "H"                   ; Stop the current action
    246247hotkey.session.attack = AltGr               ; Modifier to force attack instead of another action
    247248hotkey.session.garrison = Ctrl              ; Modifier to garrison when clicking on building
    248249hotkey.session.attackmove = Ctrl            ; Modifier to attackmove when clicking on a point
  • binaries/data/mods/public/gui/session/session.xml

     
    9797        <action on="Press">setCameraFollow(g_Selection.toList()[0]);</action>
    9898    </object>
    9999   
     100    <!-- Stop the selected units -->
     101    <object hotkey="session.stop">
     102        <action on="Press">stopUnits(g_Selection.toList());</action>
     103    </object>
     104   
    100105    <!-- queue first unit in the training queue  -->
    101106    <object hotkey="session.queueunit.1">
    102107        <action on="Press">addTrainingByPosition(0);</action>