change Export to shift-P
This commit is contained in:
parent
c74d5c5385
commit
ac93b55609
@ -622,6 +622,9 @@ public class Game : GameWindow {
|
|||||||
|
|
||||||
KeyboardState input = KeyboardState;
|
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.)
|
// FIXME: add a confirm dialog before closing. (Also for the window-close button.)
|
||||||
// Close when Escape is pressed.
|
// Close when Escape is pressed.
|
||||||
if (input.IsKeyPressed(Keys.Escape)) {
|
if (input.IsKeyPressed(Keys.Escape)) {
|
||||||
@ -687,7 +690,7 @@ public class Game : GameWindow {
|
|||||||
photoIndex -= 5;
|
photoIndex -= 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (input.IsKeyPressed(Keys.X)) {
|
if (input.IsKeyPressed(Keys.P) && shiftIsDown) {
|
||||||
ExportPhotos();
|
ExportPhotos();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -728,8 +731,7 @@ public class Game : GameWindow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (rating >= 0) {
|
if (rating >= 0) {
|
||||||
bool shifted = input.IsKeyDown(Keys.LeftShift) || input.IsKeyDown(Keys.RightShift);
|
if (shiftIsDown) {
|
||||||
if (shifted) {
|
|
||||||
FilterByRating(rating);
|
FilterByRating(rating);
|
||||||
} else {
|
} else {
|
||||||
if (photos.Count > 0) {
|
if (photos.Count > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user