Reverse Left and Right meaning of keys.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
4f0eda0e6e
commit
03703fc0af
@ -3264,6 +3264,14 @@ void wxListMainWindow::OnChar( wxKeyEvent &event )
|
||||
const int pageSize = GetCountPerPage();
|
||||
wxCHECK_RET( pageSize, _T("should have non zero page size") );
|
||||
|
||||
if (GetLayoutDirection() == wxLayout_RightToLeft)
|
||||
{
|
||||
if (event.GetKeyCode() == WXK_RIGHT)
|
||||
event.m_keyCode = WXK_LEFT;
|
||||
else if (event.GetKeyCode() == WXK_LEFT)
|
||||
event.m_keyCode = WXK_RIGHT;
|
||||
}
|
||||
|
||||
switch ( event.GetKeyCode() )
|
||||
{
|
||||
case WXK_UP:
|
||||
|
@ -2585,6 +2585,14 @@ void wxGenericTreeCtrl::OnChar( wxKeyEvent &event )
|
||||
event.CmdDown(),
|
||||
is_multiple, extended_select, unselect_others);
|
||||
|
||||
if (GetLayoutDirection() == wxLayout_RightToLeft)
|
||||
{
|
||||
if (event.GetKeyCode() == WXK_RIGHT)
|
||||
event.m_keyCode = WXK_LEFT;
|
||||
else if (event.GetKeyCode() == WXK_LEFT)
|
||||
event.m_keyCode = WXK_RIGHT;
|
||||
}
|
||||
|
||||
// + : Expand
|
||||
// - : Collaspe
|
||||
// * : Expand all/Collapse all
|
||||
|
Loading…
Reference in New Issue
Block a user