Example #1
0
        private void FormKeyDown(object sender, KeyEventArgs e)
        {
            e.Handled = true;
            switch (e.KeyData)
            {
            case (Keys.Z | Keys.Shift | Keys.Control):
            case (Keys.Y | Keys.Control):
                Redo();
                break;

            case (Keys.Z | Keys.Control):
                Undo();
                break;

            case (Keys.C | Keys.Control):
                CopyImage();
                break;

            case (Keys.T | Keys.Control):
                OCR_Image();
                break;

            case (Keys.R | Keys.Control):
                ToggleResize();
                break;

            case (Keys.S | Keys.Control):
                AskSaveImage();
                break;

            case Keys.Escape:
                ClipManager.DestroyClip(ClipName);
                break;

            case Keys.Tab:
                WindowState = FormWindowState.Minimized;
                break;
            }
        }
Example #2
0
 private void Destroy_Click(object sender, EventArgs e)
 {
     ClipManager.DestroyClip(ClipName);
 }