]> git.sesse.net Git - vlc/commitdiff
Fix for non-working DELETE key in Playlist on Win32
authorMarian Durkovic <md@videolan.org>
Sat, 9 Dec 2006 20:24:50 +0000 (20:24 +0000)
committerMarian Durkovic <md@videolan.org>
Sat, 9 Dec 2006 20:24:50 +0000 (20:24 +0000)
For some unknown reason, wxwidgets 2.6.3 always return WXK_NUMPAD_DELETE
even in case normal Delete key was pressed

Please consider backporting just for Win32 binaries.

modules/gui/wxwidgets/dialogs/playlist.cpp

index 80164094a3499b3e7529f64744d9016bd2141ccb..017b1e216921165fc20929ff174ab3a61de7ec51 100644 (file)
@@ -1146,7 +1146,7 @@ void Playlist::OnKeyDown( wxTreeEvent& event )
 {
     long keycode = event.GetKeyCode();
     /* 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 */
         OnDeleteSelection( event );