From d2bb72ffd5457d12ca7c77282fa0dd94f8ca5fd9 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 2 Apr 2009 09:51:13 +0000 Subject: [PATCH] Fixed wxRTC AltGr+key input on Windows git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59980 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/richtext/richtextctrl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/richtext/richtextctrl.cpp b/src/richtext/richtextctrl.cpp index fdba81189a..b338b3747b 100644 --- a/src/richtext/richtextctrl.cpp +++ b/src/richtext/richtextctrl.cpp @@ -994,7 +994,8 @@ void wxRichTextCtrl::OnChar(wxKeyEvent& event) #ifdef __WXMAC__ if (event.CmdDown()) #else - if (event.CmdDown() || event.AltDown()) + // Fixes AltGr+key with European input languages on Windows + if ((event.CmdDown() && !event.AltDown()) || (event.AltDown() && !event.CmdDown())) #endif { event.Skip(); -- 2.50.0