Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Xwt/Xwt/KeyEventArgs.cs')
-rw-r--r--Xwt/Xwt/KeyEventArgs.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/Xwt/Xwt/KeyEventArgs.cs b/Xwt/Xwt/KeyEventArgs.cs
index 452f6b89..c26fb2c6 100644
--- a/Xwt/Xwt/KeyEventArgs.cs
+++ b/Xwt/Xwt/KeyEventArgs.cs
@@ -101,10 +101,12 @@ namespace Xwt
/// <param name="characters">The character string this event represents</param>
/// <param name="charactersIgnoringModifiers">The character string this event represents ignoring any modifier keys that are pressed</param>
/// <param name="nativeEvent">The native event object</param>
- public KeyEventArgs(Key key, int nativeKeyCode, ModifierKeys modifiers, bool isRepeat, long timestamp, string characters, string charactersIgnoringModifiers, object nativeEvent)
+ /// <param name="hardwareKey">The hardware key pressed</param>
+ public KeyEventArgs(Key key, int nativeKeyCode, ModifierKeys modifiers, bool isRepeat, long timestamp, string characters, string charactersIgnoringModifiers, object nativeEvent, Key hardwareKey)
: this(key, nativeKeyCode, modifiers, isRepeat, timestamp, characters, charactersIgnoringModifiers)
{
this.NativeEvent = nativeEvent;
+ this.RawKey = hardwareKey;
}
/// <summary>
@@ -167,6 +169,12 @@ namespace Xwt
/// </summary>
/// <value>An opaque object representing the event in the native toolkit</value>
public object NativeEvent { get; private set; }
+
+ /// <summary>
+ /// Returns the physical key on the keyboard that was pressed according to the
+ /// ANSI standard US keyboard.
+ /// </summary>
+ public Key HardwareKey { get; internal set; }
}
}