Commit a69fa5ee authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Fix for non-working DELETE key in Playlist on Win32

For some unknown reason, wxwidgets 2.6.3 always return WXK_NUMPAD_DELETE 
even in case normal Delete key was pressed
parent 727c4ed1
...@@ -1142,7 +1142,7 @@ void Playlist::OnKeyDown( wxTreeEvent& event ) ...@@ -1142,7 +1142,7 @@ void Playlist::OnKeyDown( wxTreeEvent& event )
{ {
long keycode = event.GetKeyCode(); long keycode = event.GetKeyCode();
/* Delete selected items */ /* Delete selected items */
if( keycode == WXK_BACK || keycode == WXK_DELETE ) if( keycode == WXK_BACK || keycode == WXK_DELETE || keycode == WXK_NUMPAD_DELETE )
{ {
/* We send a dummy event */ /* We send a dummy event */
OnDeleteSelection( event ); OnDeleteSelection( event );
......
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