From 320c4f713d89929cca2e84c1f75e80d7003a1ca0 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Mon, 16 Feb 2004 22:04:27 +0000 Subject: [PATCH] 2004-02-16 Mike Kestner * gdk/EventKey.cs : add a Key prop to return casted KeyVals. svn path=/trunk/gtk-sharp/; revision=23152 --- ChangeLog | 4 ++++ gdk/EventKey.cs | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index cba090de0..20e367272 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-02-16 Mike Kestner + + * gdk/EventKey.cs : add a Key prop to return casted KeyVals. + 2004-02-16 Mike Kestner * gdk/Gdk.metadata : hide EventKey diff --git a/gdk/EventKey.cs b/gdk/EventKey.cs index a6c074c28..0ed8d234a 100644 --- a/gdk/EventKey.cs +++ b/gdk/EventKey.cs @@ -40,6 +40,12 @@ namespace Gdk { } } + public Key Key { + get { + return (Key) gtksharp_gdk_event_key_get_keyval (Handle); + } + } + public uint KeyValue { get { return gtksharp_gdk_event_key_get_keyval (Handle);