Corretta conversione del . del tastierino numerico in ,

git-svn-id: svn://10.65.10.50/branches/R_10_00@22708 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2012-07-13 13:43:14 +00:00
parent 456ea6579d
commit a01ee6d22d

View File

@ -635,7 +635,6 @@ void TwxWindow::OnChar(wxKeyEvent& evt)
void TwxWindow::OnKeyDown(wxKeyEvent& e) void TwxWindow::OnKeyDown(wxKeyEvent& e)
{ {
#ifdef WIN32
// Triste necessita' per gestire corretamente Alt+'+' del tasterino // Triste necessita' per gestire corretamente Alt+'+' del tasterino
const int k = e.GetKeyCode(); const int k = e.GetKeyCode();
if (k == WXK_NUMPAD_ADD) if (k == WXK_NUMPAD_ADD)
@ -645,14 +644,12 @@ void TwxWindow::OnKeyDown(wxKeyEvent& e)
OnChar(e); OnChar(e);
return; return;
} }
} } else
#else if (k == WXK_NUMPAD_DECIMAL)
if (e.AltDown() || e.ControlDown())
{ {
OnChar(event); OnChar(e);
return; return;
} }
#endif
e.Skip(); e.Skip();
} }