Commit b6e2bf32 authored by Clément Stenac's avatar Clément Stenac

Work around what looks like a ...

...
WX bug !
(OnActivateItem not working with enter key on Win32)

(Closes:#348) 
parent 0d2c5a89
......@@ -1136,6 +1136,17 @@ void Playlist::OnKeyDown( wxTreeEvent& event )
/* We send a dummy event */
OnDeleteSelection( event );
}
/* Work around wxWin32 bug */
else if( keycode == WXK_RETURN )
{
wxArrayTreeItemIds items;
if( treectrl->GetSelections( items ) > 0 )
{
wxTreeEvent event;
event.SetItem( items.Item( 0 ) );
OnActivateItem( event );
}
}
else
{
event.Skip();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment