Browse Source

change Export to shift-P

main
Colin McMillen 11 months ago
parent
commit
ac93b55609
  1. 8
      Program.cs

8
Program.cs

@ -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) {

Loading…
Cancel
Save