Ticket #14553 (closed defect: fixed)
The Delete key does not work when renaming an entry in a wxListCtrl/wxTreeCtrl.
|Reported by:||jdagresta||Owned by:|
|Keywords:||wxListCtrl wxTreeCtrl wxTextCtrl||Cc:||jdagresta@…, jralls@…|
The Delete key does not work when renaming an entry in a wxListCtrl/wxTreeCtrl. It just beeps when the Delete key is pressed.
Platforms: Solaris, AIX, and Red Hat Linux.
I tried running in the debugger and setting a breakpoint at wxTextCtrl::OnChar() and it gets there for BACKSPACE key in rename mode but never for the DELETE key.
Apparently there is an automatic Delete accelerator set by wxWidgets due to having DEL set in a menu label (e.g. <label>_Delete\tDEL</label> in the xrc file) of the application and this seems to be causing the problem. Would like a solution that does not require removing the DEL accelerator from the menu.
See this thread started by Vadim Zeitlin on this subject: