In This Article

IEditorViewKeyInputEventSink Interface

Provides the base requirements for an object that can be notified of IEditorView keyboard input events.

public interface IEditorViewKeyInputEventSink

Remarks

Objects implementing this event sink interface can be registered as a service with an ISyntaxLanguage using the RegisterService(object, object) method. Any object implementing this interface will be notified automatically when related events occur.

Methods

NotifyKeyDown(IEditorView, KeyEventArgs)

Notifies when a key is pressed down while focus is in the specified IEditorView.

void NotifyKeyDown(IEditorView view, KeyEventArgs e)
Parameter Type Description
view IEditorView

The IEditorView that received the event.

e KeyEventArgs

The KeyEventArgs that contains the event data.

NotifyKeyUp(IEditorView, KeyEventArgs)

Notifies when a key is released while focus is in the specified IEditorView.

void NotifyKeyUp(IEditorView view, KeyEventArgs e)
Parameter Type Description
view IEditorView

The IEditorView that received the event.

e KeyEventArgs

The KeyEventArgs that contains the event data.