ITfKeyEventSink interface
The ITfKeyEventSink interface is implemented by a text service to receive keyboard and focus event notifications. To install this event sink, call ITfKeystrokeMgr::AdviseKeyEventSink.
Members
The ITfKeyEventSink interface inherits from the IUnknown interface. ITfKeyEventSink also has these types of members:
Methods
The ITfKeyEventSink interface has these methods.
| Method | Description |
|---|---|
| OnKeyDown |
Called when a key down event occurs. |
| OnKeyUp |
Called when a key up event occurs. |
| OnPreservedKey |
Called when a preserved key event occurs. |
| OnSetFocus |
Called when a TSF text service receives or loses the keyboard focus. |
| OnTestKeyDown |
Called to determine if a text service will handle a key down event. |
| OnTestKeyUp |
Called to determine if a text service will handle a key up event. |
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps | Windows Store apps] |
|
Redistributable |
TSF 1.0 on Windows 2000 Professional |
|
Header |
|
|
IDL |
|
|
DLL |
|
See also