Don't use X11-only functions when not using X11 in wxGTK.
See #16688. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -849,6 +849,8 @@ wxTranslateGTKKeyEventToWx(wxKeyEvent& event,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
|
if (GDK_IS_X11_DISPLAY(gdk_window_get_display(gdk_event->window)))
|
||||||
|
{
|
||||||
// we want to always get the same key code when the same key is
|
// we want to always get the same key code when the same key is
|
||||||
// pressed regardless of the state of the modifiers, i.e. on a
|
// pressed regardless of the state of the modifiers, i.e. on a
|
||||||
// standard US keyboard pressing '5' or '%' ('5' key with
|
// standard US keyboard pressing '5' or '%' ('5' key with
|
||||||
@@ -871,6 +873,7 @@ wxTranslateGTKKeyEventToWx(wxKeyEvent& event,
|
|||||||
// use the normalized, i.e. lower register, keysym if we've
|
// use the normalized, i.e. lower register, keysym if we've
|
||||||
// got one
|
// got one
|
||||||
key_code = keysymNormalized ? keysymNormalized : keysym;
|
key_code = keysymNormalized ? keysymNormalized : keysym;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
key_code = keysym;
|
key_code = keysym;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user