diff --git a/wxPython/src/_event.i b/wxPython/src/_event.i index 0ebaae3fac..dfeebbde88 100644 --- a/wxPython/src/_event.i +++ b/wxPython/src/_event.i @@ -696,14 +696,16 @@ public: %pythoncode { KeyCode = GetKeyCode } %extend { - int GetUniChar() { + int GetUnicodeKey() { %#if wxUSE_UNICODE - return self->m_uniChar; + return self->GetUnicodeKey(); %#else return 0; %#endif } } + %pythoncode { GetUniChar = GetUnicodeKey } + // get the raw key code (platform-dependent) wxUint32 GetRawKeyCode() const;