-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Expand file tree
/
Copy pathKeyEvent.cs
More file actions
59 lines (51 loc) · 2.13 KB
/
KeyEvent.cs
File metadata and controls
59 lines (51 loc) · 2.13 KB
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
53
54
55
56
57
58
59
// Copyright © 2010-2017 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp
{
/// <summary>
/// Class representing a a keyboard event.
/// </summary>
public struct KeyEvent
{
/// <summary>
/// The type of keyboard event.
/// </summary>
public KeyEventType Type { get; set; }
/// <summary>
/// Bit flags describing any pressed modifier keys. See
/// cef_event_flags_t for values.
/// </summary>
public CefEventFlags Modifiers { get; set; }
/// <summary>
/// The Windows key code for the key event. This value is used by the DOM
/// specification. Sometimes it comes directly from the event (i.e. on
/// Windows) and sometimes it's determined using a mapping function. See
/// WebCore/platform/chromium/KeyboardCodes.h for the list of values.
/// </summary>
public int WindowsKeyCode { get; set; }
/// <summary>
/// The actual key code genenerated by the platform.
/// </summary>
public int NativeKeyCode { get; set; }
/// <summary>
/// Indicates whether the event is considered a "system key" event (see
/// http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for details).
/// This value will always be false on non-Windows platforms.
/// </summary>
public bool IsSystemKey { get; set; }
/// <summary>
/// The character generated by the keystroke.
/// </summary>
//char16 character { get; set; }
//
// Same as |character| but unmodified by any concurrently-held modifiers
// (except shift). This is useful for working out shortcut keys.
//
//char16 unmodified_character { get; set; }
/// <summary>
/// True if the focus is currently on an editable field on the page. This is useful for determining if standard key events should be intercepted.
/// </summary>
public bool FocusOnEditableField { get; set; }
}
}