meaning of left/right keys should be inversed in RTL locale (patch 1863866)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
1f2a1c3cd7
commit
5c58a3a97c
@ -2581,7 +2581,19 @@ void wxAuiTabCtrl::OnChar(wxKeyEvent& event)
|
|||||||
|
|
||||||
int newPage = -1;
|
int newPage = -1;
|
||||||
|
|
||||||
if (key == WXK_RIGHT)
|
int forwardKey, backwardKey;
|
||||||
|
if (GetLayoutDirection() == wxLayout_RightToLeft)
|
||||||
|
{
|
||||||
|
forwardKey = WXK_LEFT;
|
||||||
|
backwardKey = WXK_RIGHT;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
forwardKey = WXK_RIGHT;
|
||||||
|
backwardKey = WXK_LEFT;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (key == forwardKey)
|
||||||
{
|
{
|
||||||
if (m_pages.GetCount() > 1)
|
if (m_pages.GetCount() > 1)
|
||||||
{
|
{
|
||||||
@ -2591,7 +2603,7 @@ void wxAuiTabCtrl::OnChar(wxKeyEvent& event)
|
|||||||
newPage = GetActivePage() + 1;
|
newPage = GetActivePage() + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (key == WXK_LEFT)
|
else if (key == backwardKey)
|
||||||
{
|
{
|
||||||
if (m_pages.GetCount() > 1)
|
if (m_pages.GetCount() > 1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user