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);