Description:
Add backspace shortcut.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -188,8 +188,15 | |||||
|
188 | { |
|
188 | { |
|
189 | SendMessage(new ToggleWindowTypeMessage {Window = Window.InGameMenu}); |
|
189 | SendMessage(new ToggleWindowTypeMessage {Window = Window.InGameMenu}); |
|
190 | SendMessage(new GameRateMessage { paused = true, rate = null }); |
|
190 | SendMessage(new GameRateMessage { paused = true, rate = null }); |
|
191 | SendMessage(new AdjustSelection {Type = AdjustmentType.Complete }); |
|
191 | //People will probably expect escape to clear, even though its primary purpose |
|
|
192 | //is to open the menu: | ||
|
|
193 | SendMessage(new AdjustSelection {Type = AdjustmentType.Clear }); | ||
|
192 | } |
|
194 | } |
|
|
195 | |||
|
|
196 | //Back => Backspace | ||
|
|
197 | if (keyboardCur.IsKeyDown(Keys.Back) && keyboardPrev.IsKeyUp(Keys.Back)) { | ||
|
|
198 | SendMessage(new AdjustSelection {Type = AdjustmentType.Clear }); | ||
|
|
199 | } | ||
|
193 | } |
|
200 | } |
|
194 |
|
201 | ||
|
195 | if (keyboardCur.IsKeyDown(Keys.OemBackslash) && keyboardPrev.IsKeyUp(Keys.OemBackslash)) |
|
202 | if (keyboardCur.IsKeyDown(Keys.OemBackslash) && keyboardPrev.IsKeyUp(Keys.OemBackslash)) |
@@ -257,6 +264,8 | |||||
|
257 | SendMessage(new AdjustSelection { End = CellMap.calculateMousegrid(original_point)}); |
|
264 | SendMessage(new AdjustSelection { End = CellMap.calculateMousegrid(original_point)}); |
|
258 | } |
|
265 | } |
|
259 |
|
266 | ||
|
|
267 | |||
|
|
268 | |||
|
260 | #endregion |
|
269 | #endregion |
|
261 | this.keyboardPrev = keyboardCur; |
|
270 | this.keyboardPrev = keyboardCur; |
|
262 | this.mousePrev = mouseCur; |
|
271 | this.mousePrev = mouseCur; |
You need to be logged in to leave comments.
Login now