Ticket #14553 (closed defect: fixed)
The Delete key does not work when renaming an entry in a wxListCtrl/wxTreeCtrl.
| Reported by: | jdagresta | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.9.5 |
| Component: | wxGTK | Version: | 2.9-svn |
| Keywords: | wxListCtrl wxTreeCtrl wxTextCtrl | Cc: | jdagresta@…, jralls@… |
| Blocked By: | Patch: | no | |
| Blocking: |
Description
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:
http://groups.google.com/group/wx-dev/browse_thread/thread/2fddc94a256a14bf/d73fb58a7ac3ef64
