change Export to shift-P

This commit is contained in:
Colin McMillen 2023-07-31 00:58:21 -04:00
parent c74d5c5385
commit ac93b55609

View File

@ -622,6 +622,9 @@ public class Game : GameWindow {
KeyboardState input = KeyboardState;
bool shiftIsDown = input.IsKeyDown(Keys.LeftShift) || input.IsKeyDown(Keys.RightShift);
bool ctrlIsDown = input.IsKeyDown(Keys.LeftControl) || input.IsKeyDown(Keys.RightControl);
// FIXME: add a confirm dialog before closing. (Also for the window-close button.)
// Close when Escape is pressed.
if (input.IsKeyPressed(Keys.Escape)) {
@ -687,7 +690,7 @@ public class Game : GameWindow {
photoIndex -= 5;
}
if (input.IsKeyPressed(Keys.X)) {
if (input.IsKeyPressed(Keys.P) && shiftIsDown) {
ExportPhotos();
}
@ -728,8 +731,7 @@ public class Game : GameWindow {
}
if (rating >= 0) {
bool shifted = input.IsKeyDown(Keys.LeftShift) || input.IsKeyDown(Keys.RightShift);
if (shifted) {
if (shiftIsDown) {
FilterByRating(rating);
} else {
if (photos.Count > 0) {