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
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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