IWpfKeyboardTrackingService Interface
Visual Studio 2015
Defines a MEF service responsible for tracking the keyboard in hosts of the WPF editor.
Assembly: Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)
| Name | Description | |
|---|---|---|
![]() | BeginTrackingKeyboard(IntPtr, IList<UInt32>) | Starts tracking the keyboard. |
![]() | EndTrackingKeyboard() | Stops tracking the keyboard. |
Keyboard tracking is necessary because some hosts, such as VisualStudio, do their own keyboard handling, causing inconsistent behavior with WPF elements even when they have keyboard focus. By tracking the keyboard, all keyboard events will be routed to WPF first, giving focused WPF controls a chance to handle keyboard events in a consistent manner.
Show:
