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
파일 보기 프로젝트 열기: SLaks/VSEmbed

공개 메소드들

메소드 설명
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