This project is read-only.

Shortcut Manager Documentation

Shortcut Manager is C# project to help programmers handle keyboard shorcuts in Winform applications. In this documentation you can find how this library works and how to use it. Library enables to create keyboard shortcuts in style (CONTROL)-(ALT)-(SHIFT) + Key.

Simple example of library use

public partial class Form1 : Form
{
    private readonly ShortcutInfo _shortcut;

    public Form1()
    {
        InitializeComponent();

        // define shortcut
        _shortcut = ShortcutManager.Subscribe(KeyModifiers.Control | KeyModifiers.Alt, Key.A, MyEventHandler, this);
    }

    // handler for shortcut
    private void MyEventHandler(ShortcutInfo shortcutInfo, ref bool handled)
    {
        MessageBox.Show(shortcutInfo.ToString());
        handled = true;
    }
}

Last edited Nov 15, 2011 at 2:54 PM by CSharpDeveloping, version 7

Comments

No comments yet.