Fixed browsing order with arrow keys in component chooser on Windows
As Windows displays the component list in inverted order, the direction of scrolling had to be reversed as well.
This commit is contained in:
parent
6344e238b3
commit
5fac73fc21
|
@ -240,9 +240,21 @@ void COMPONENT_TREE::onQueryCharHook( wxKeyEvent& aKeyStroke )
|
|||
|
||||
switch( aKeyStroke.GetKeyCode() )
|
||||
{
|
||||
case WXK_UP: selectIfValid( GetPrevItem( *m_tree_ctrl, sel ) ); break;
|
||||
#ifndef __WINDOWS__
|
||||
case WXK_UP:
|
||||
#else
|
||||
case WXK_DOWN:
|
||||
#endif
|
||||
selectIfValid( GetPrevItem( *m_tree_ctrl, sel ) );
|
||||
break;
|
||||
|
||||
case WXK_DOWN: selectIfValid( GetNextItem( *m_tree_ctrl, sel ) ); break;
|
||||
#ifndef __WINDOWS__
|
||||
case WXK_DOWN:
|
||||
#else
|
||||
case WXK_UP:
|
||||
#endif
|
||||
selectIfValid( GetNextItem( *m_tree_ctrl, sel ) );
|
||||
break;
|
||||
|
||||
default:
|
||||
aKeyStroke.Skip(); // Any other key: pass on to search box directly.
|
||||
|
|
Loading…
Reference in New Issue