]> git.saurik.com Git - wxWidgets.git/commitdiff
DIKI_ALTGR was removed in DFB 0.9.25
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 28 Sep 2006 14:02:52 +0000 (14:02 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 28 Sep 2006 14:02:52 +0000 (14:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/dfb/window.cpp

index cdbcfbdb9e9d5e50d4dd216851256529bab5f1d5..4839e08f65363f8e2d4a3f0e375fa5dd0174b7b0 100644 (file)
@@ -862,7 +862,11 @@ static long GetTranslatedKeyCode(DFBInputDeviceKeyIdentifier key_id)
         KEY(DIKI_CONTROL_R,         WXK_CONTROL);
         KEY(DIKI_ALT_L,             WXK_ALT);
         KEY(DIKI_ALT_R,             WXK_ALT);
-        KEY(DIKI_ALT_GR,            0);
+        // this key was removed in 0.9.25 but include it for previous versions
+        // just to avoid gcc warnings about unhandled enum value in switch
+#if !wxCHECK_DFB_VERSION(0, 9, 24)
+        KEY(DIKI_ALTGR,             0);
+#endif
         KEY(DIKI_META_L,            0);
         KEY(DIKI_META_R,            0);
         KEY(DIKI_SUPER_L,           0);