|
|
|
@ -273,29 +273,21 @@ namespace photo_sorter
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
|
|
|
|
|
protected override bool ProcessCmdKey(ref Message msg, Keys key_data)
|
|
|
|
|
{
|
|
|
|
|
if (tsi_enableGlobalHotkeys.Checked)
|
|
|
|
|
{
|
|
|
|
|
if (keyData == Keys.Enter)
|
|
|
|
|
{
|
|
|
|
|
sort_image();
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
if (keyData == Keys.PageUp)
|
|
|
|
|
switch (key_data)
|
|
|
|
|
{
|
|
|
|
|
case Keys.PageUp:
|
|
|
|
|
if (global.filecount > 1)
|
|
|
|
|
prev_image();
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
if (keyData == Keys.PageDown)
|
|
|
|
|
{
|
|
|
|
|
case Keys.PageDown:
|
|
|
|
|
if (global.filecount > 1)
|
|
|
|
|
next_image();
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
if (keyData == Keys.Home)
|
|
|
|
|
{
|
|
|
|
|
case Keys.Shift | Keys.Home:
|
|
|
|
|
if (global.filecount > 1)
|
|
|
|
|
{
|
|
|
|
|
status_msg("Loading first image...");
|
|
|
|
@ -303,9 +295,7 @@ namespace photo_sorter
|
|
|
|
|
update_image();
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
if (keyData == Keys.End)
|
|
|
|
|
{
|
|
|
|
|
case Keys.Shift | Keys.End:
|
|
|
|
|
if (global.filecount > 1)
|
|
|
|
|
{
|
|
|
|
|
status_msg("Loading final image...");
|
|
|
|
@ -313,9 +303,18 @@ namespace photo_sorter
|
|
|
|
|
update_image();
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
case Keys.Enter:
|
|
|
|
|
sort_image();
|
|
|
|
|
return true;
|
|
|
|
|
case Keys.Delete:
|
|
|
|
|
delete_image();
|
|
|
|
|
return true;
|
|
|
|
|
case Keys.Shift | Keys.Enter:
|
|
|
|
|
delete_image();
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return base.ProcessCmdKey(ref msg, keyData);
|
|
|
|
|
return base.ProcessCmdKey(ref msg, key_data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void next_image()
|
|
|
|
|