forked from 0ad/0ad
Shift key when deleting a saved game do not need confirmation, addresses #3018
This was SVN commit r16245.
This commit is contained in:
parent
df2e077870
commit
499d41ad80
@ -290,6 +290,7 @@ rotate.ccw = LeftBracket ; Rotate building placement preview anticlockwise
|
||||
[hotkey.session.savedgames]
|
||||
delete = Delete ; Delete the selected saved game asking confirmation
|
||||
reallyDelete = "Shift+Delete" ; Delete the selected saved game without confirmation
|
||||
noConfirmation = Shift ; Do not ask confirmation when clicking on the delete button
|
||||
|
||||
[hotkey.session.queueunit] ; > UNIT TRAINING
|
||||
1 = "Z" ; add first unit type to queue
|
||||
|
@ -117,3 +117,4 @@ Left Drag: Rotate building using mouse (foundation will be placed on mouse relea
|
||||
[font="sans-bold-14"]When loading a saved game
|
||||
[font="sans-14"]Delete: delete the selected saved game, asking for confirmation
|
||||
Shift+Delete: delete the selected saved game without asking for confirmation
|
||||
Shift: do not ask confirmation when clicking on the delete button
|
||||
|
@ -28,7 +28,12 @@
|
||||
|
||||
<object name="deleteGameButton" type="button" size="33%+20 100%-60 66%-15 100%-32" style="StoneButton" hotkey="session.savedgames.delete">
|
||||
<translatableAttribute id="caption">Delete</translatableAttribute>
|
||||
<action on="Press">deleteGame();</action>
|
||||
<action on="Press">
|
||||
if (Engine.HotkeyIsPressed("session.savedgames.noConfirmation"))
|
||||
deleteGameWithoutConfirmation();
|
||||
else
|
||||
deleteGame();
|
||||
</action>
|
||||
</object>
|
||||
|
||||
<object hotkey="session.savedgames.reallyDelete">
|
||||
|
Loading…
Reference in New Issue
Block a user