change Export keybinding to Alt-P

This commit is contained in:
Colin McMillen 2023-07-31 17:01:08 -04:00
parent c68f42915c
commit 9e03d8f2c5

View File

@ -623,6 +623,7 @@ public class Game : GameWindow {
KeyboardState input = KeyboardState; KeyboardState input = KeyboardState;
bool shiftIsDown = input.IsKeyDown(Keys.LeftShift) || input.IsKeyDown(Keys.RightShift); bool shiftIsDown = input.IsKeyDown(Keys.LeftShift) || input.IsKeyDown(Keys.RightShift);
bool altIsDown = input.IsKeyDown(Keys.LeftAlt) || input.IsKeyDown(Keys.RightAlt);
bool ctrlIsDown = input.IsKeyDown(Keys.LeftControl) || input.IsKeyDown(Keys.RightControl); bool ctrlIsDown = input.IsKeyDown(Keys.LeftControl) || input.IsKeyDown(Keys.RightControl);
// FIXME: add a confirm dialog before closing. (Also for the window-close button.) // FIXME: add a confirm dialog before closing. (Also for the window-close button.)
@ -690,7 +691,7 @@ public class Game : GameWindow {
photoIndex -= 5; photoIndex -= 5;
} }
if (input.IsKeyPressed(Keys.P) && shiftIsDown) { if (input.IsKeyPressed(Keys.P) && altIsDown) {
ExportPhotos(); ExportPhotos();
} }