diff --git a/BinxelviewForm.cs b/BinxelviewForm.cs index 9bfc0b8..c5b509d 100644 --- a/BinxelviewForm.cs +++ b/BinxelviewForm.cs @@ -1927,5 +1927,21 @@ private void dataGridPixel_CellValueChanged(object sender, DataGridViewCellEvent redrawPixels(); } } + + protected override bool ProcessCmdKey(ref Message msg, Keys keyData) + { + // global hotkeys + switch (keyData) + { + case Keys.Control | Keys.O: + openToolStripMenuItem_Click(this, null); + return true; + case Keys.Control | Keys.R: + reloadFileToolStripMenuItem_Click(this, null); + return true; + default: + return base.ProcessCmdKey(ref msg, keyData); + } + } } } diff --git a/readme.txt b/readme.txt index 3df7836..6bedf33 100644 --- a/readme.txt +++ b/readme.txt @@ -129,6 +129,15 @@ Custom palettes are 24-bit RGB triples (8 bits for each component). Click on a colour in the palette box to edit it. +Hotkeys +------- + +The following global hotkeys may be used: + +Ctrl+O - Open a new file. +Ctrl+R - Reload the current file. + + Other Notes ----------- @@ -157,6 +166,7 @@ Changes - Maximum file size increased from 256MB to 2GB. - Right click context menu option to move position to the selected pixel. - File menu reload option. +- Added global Ctrl hotkeys. 1.5.0.0 (2020-07-31) - Twiddle option for inspecting textures stored with morton ordering of pixels.