C# 클래스 Vim.VisualStudio.Implementation.Misc.FallbackKeyProcessor

The fallback key processor handles all the keys VsVim had to unbind due to conflicts
상속: Vim.UI.Wpf.KeyProcessor
파일 보기 프로젝트 열기: jaredpar/VsVim 1 사용 예제들

공개 메소드들

메소드 설명
KeyDown ( System.Windows.Input.KeyEventArgs args ) : void

Convert this key processors's keyboard events into KeyInput and forward it to TryProcess

비공개 메소드들

메소드 설명
FallbackKeyProcessor ( IVsShell vsShell, _DTE dte, IKeyUtil keyUtil, IVimApplicationSettings vimApplicationSettings, ITextView textView, IVimBuffer vimBuffer, Vim.VisualStudio.Implementation.Misc.ScopeData scopeData ) : System

In general a key processor applies to a specific IWpfTextView but by not making use of it, the fallback processor can be reused for multiple text views

GetKeyBindings ( ) : void

Get conflicting key bindings stored in our application settings

GetScopeOrder ( ScopeKind scope ) : int

Get a sortable numeric value corresponding to a scope. Lower numbers cause the binding to be considered first

IsTextViewBinding ( CommandKeyBinding binding ) : bool

True if the binding is applicable to a text view

OnSettingsChanged ( object sender, ApplicationSettingsEventArgs e ) : void
OnTextViewClosed ( object sender, EventArgs e ) : void
SafeExecuteCommand ( CommandId command ) : bool

Safely execute a Visual Studio command

TryConvertLetterToKeyInput ( System.Windows.Input.KeyEventArgs keyEventArgs, KeyInput &keyInput ) : bool

This maps letters which are pressed to a KeyInput value by looking at the virtual key vs the textual input. When Visual Studio is processing key mappings it's doing so in PreTraslateMessage and using the virtual key codes. We need to simulate this as best as possible when forwarding keys

TryProcess ( KeyInput keyInput ) : bool

Try to process this KeyInput

메소드 상세

KeyDown() 공개 메소드

Convert this key processors's keyboard events into KeyInput and forward it to TryProcess
public KeyDown ( System.Windows.Input.KeyEventArgs args ) : void
args System.Windows.Input.KeyEventArgs
리턴 void