aMule Bug Tracker - aMule
View Issue Details
0001207aMuleMiscpublic2007-11-22 07:552008-01-06 14:47
mr_hyde 
Xaignar 
normalminoralways
resolvedfixed 
SVN 
 
Any
0001207: Keyboard events (DELETE, ARROW KEYS pressed) not managed in some list control
See http://forum.amule.org/index.php?topic=13788.0. [^]

Some list controls such as download list, upload list and shared file list have not the focus so it is not possible to use cursor arrow keys to move the current selection or the DELETE key to cancel the current download.

With the following workaround the focus is restored.
[from the forum development section]

Edit file src/extern/wxWidgets/listctrl.cpp and change


void wxListMainWindow::ChangeCurrent(size_t current)
{
    m_current = current;
    SendNotify(current, wxEVT_COMMAND_LIST_ITEM_FOCUSED);
}

in

void wxListMainWindow::ChangeCurrent(size_t current)
{
    m_current = current;
    SetFocus(); // Mr Hyde - added to restore focus and keyboar events management
    SendNotify(current, wxEVT_COMMAND_LIST_ITEM_FOCUSED);
}

Please consider this as a WORKAROUND and NOT as a "final fix": I don't know well wxWidgets, I don't own a MAC (so I can't observe the results of this changes for a MAC) and probably a "more elegant" solution exist!

I made this change in CVS 20071120.

I noticed the problem using wxWidgets 2.8.6 and SLAMD64 current, with KDE.

Bye,
  Mr Hyde
No tags attached.
Issue History
2007-11-22 07:55mr_hydeNew Issue
2007-11-22 07:55mr_hydeOperating System => Any
2007-12-31 16:03mr_hydeNote Added: 0002482
2008-01-06 14:47XaignarStatusnew => resolved
2008-01-06 14:47XaignarResolutionopen => fixed
2008-01-06 14:47XaignarAssigned To => Xaignar
2008-01-06 14:47XaignarNote Added: 0002486

Notes
(0002482)
mr_hyde   
2007-12-31 16:03   
Seems to work correctly in 20071231.
Thanks,
  Mr Hyde
(0002486)
Xaignar   
2008-01-06 14:47   
Ok, thanks for reporting the problem.