C# Класс VSEmbed.Exports.BaseShortcutKeyProcessor

A base class for a KeyProcessor that handles shortcut keys.
Derived classes should call Add*Command() in their constructors to build the key map.
Наследование: VSEmbed.Editor.ChainedKeyProcessor
Показать файл Открыть проект

Открытые методы

Метод Описание
KeyDown ( System.Windows.Input.KeyEventArgs args, ITextBuffer targetBuffer, System.Action next ) : void

Handles the KeyDown event if the pressed key has been bound.

Защищенные методы

Метод Описание
AddAltShiftCommand ( Key key, Func method ) : void

Binds a key with Alt+Shift held down.

AddCommand ( Key key, Func method ) : void

Binds a single key.

AddCommand ( ModifierKeys modifiers, Key key, Func method ) : void

Binds a key with the specified modifiers held down.

AddControlCommand ( Key key, Func method ) : void

Binds a key with Control held down.

AddControlExtendableCommand ( Key key, Action method ) : void

Binds a key with the Control key, which will be invoked with a boolean indicating the state of the Shift key. This should be used for cursor movement commands.

AddControlShiftCommand ( Key key, Func method ) : void

Binds a key with Control+Shift held down.

AddExtendableCommand ( Key key, Action method ) : void

Binds a key which will be invoked with a boolean indicating the state of the Shift key. This should be used for cursor movement commands.

AddShiftCommand ( Key key, Func method ) : void

Binds a key with Shift held down.

WithTrue ( System.Action method ) : Func

Wraps a void-returning method in an Action{Boolean} for the AddCommand methods.

Описание методов

AddAltShiftCommand() защищенный Метод

Binds a key with Alt+Shift held down.
protected AddAltShiftCommand ( Key key, Func method ) : void
key Key
method Func
Результат void

AddCommand() защищенный Метод

Binds a single key.
protected AddCommand ( Key key, Func method ) : void
key Key
method Func
Результат void

AddCommand() защищенный Метод

Binds a key with the specified modifiers held down.
protected AddCommand ( ModifierKeys modifiers, Key key, Func method ) : void
modifiers ModifierKeys
key Key
method Func
Результат void

AddControlCommand() защищенный Метод

Binds a key with Control held down.
protected AddControlCommand ( Key key, Func method ) : void
key Key
method Func
Результат void

AddControlExtendableCommand() защищенный Метод

Binds a key with the Control key, which will be invoked with a boolean indicating the state of the Shift key. This should be used for cursor movement commands.
protected AddControlExtendableCommand ( Key key, Action method ) : void
key Key
method Action
Результат void

AddControlShiftCommand() защищенный Метод

Binds a key with Control+Shift held down.
protected AddControlShiftCommand ( Key key, Func method ) : void
key Key
method Func
Результат void

AddExtendableCommand() защищенный Метод

Binds a key which will be invoked with a boolean indicating the state of the Shift key. This should be used for cursor movement commands.
protected AddExtendableCommand ( Key key, Action method ) : void
key Key
method Action
Результат void

AddShiftCommand() защищенный Метод

Binds a key with Shift held down.
protected AddShiftCommand ( Key key, Func method ) : void
key Key
method Func
Результат void

KeyDown() публичный Метод

Handles the KeyDown event if the pressed key has been bound.
public KeyDown ( System.Windows.Input.KeyEventArgs args, ITextBuffer targetBuffer, System.Action next ) : void
args System.Windows.Input.KeyEventArgs
targetBuffer ITextBuffer
next System.Action
Результат void

WithTrue() защищенный статический Метод

Wraps a void-returning method in an Action{Boolean} for the AddCommand methods.
protected static WithTrue ( System.Action method ) : Func
method System.Action
Результат Func