blob: 2208734fde99274d055a19c2555e8e5036b96cf8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//
namespace Microsoft.VisualStudio.Text.Editor
{
/// <summary>
/// Processes the keyboard input of the editor.
/// </summary>
/// <remarks>
/// Export this functionality by using the <see cref="IKeyProcessorProvider"/>.
/// </remarks>
public abstract class KeyProcessor
{
/// <summary>
/// Determines whether this processor should be called for events that have
/// been handled by earlier <see cref="KeyProcessor"/> objects.
/// </summary>
public virtual bool IsInterestedInHandledEvents => false;
/// <summary>
/// Handles the KeyDown event.
/// </summary>
/// <param name="e">
/// Event arguments that describe the event.
/// </param>
public virtual void KeyDown(KeyEventArgs e)
{
}
/// <summary>
/// Handles the KeyUp event.
/// </summary>
/// <param name="e">
/// Event arguments that describe the event.
/// </param>
public virtual void KeyUp(KeyEventArgs e)
{
}
/// <summary>
/// Handles the FlagsChanged event.
/// </summary>
/// <param name="e">
/// Event arguments that describe the event.
/// </param>
public virtual void FlagsChanged(KeyEventArgs e)
{
}
}
}
|