GlobalHotkey

Global hotkey handler. Simpledisplay will usually create one for you, but if you want to use subclassing * instead of delegates, you can subclass this, and override doHandle() method.

version(X11)
class GlobalHotkey {
KeyEvent key;
void delegate() handler;
}

Constructors

this
this(KeyEvent akey, void delegate() ahandler)

Create from initialzed KeyEvent object

this
this(const(char)[] akey, void delegate() ahandler)

Create from emacs-like key name ("C-M-Y", etc.)

Meta