wxGTK:
- fixed wxMenu::Remove (John Skiff and Benjamin Williams)
+- made wxTextCtrl::EmulateKeyPress() work for Delete and Backspace
wxMSW:
All:
-- Implemented GetEditControl for wxGenericTreeCtrl (Peter
- Stieber)
+- Implemented GetEditControl for wxGenericTreeCtrl (Peter Stieber)
- Improved contrib/utils/convertrc parsing (David J. Cooke)
- Fixed handling of URLs and filenames in wxFileSystem
- Implemented alignment for wxGrid bool editor and renderer
{\it event} object should be the same as the one passed to {\tt EVT\_KEY\_DOWN}
handler previously by wxWindows.
+Please note that this function doesn't currently work correctly for all keys
+under any platform but MSW.
+
\wxheading{Return value}
{\tt TRUE} if the event resulted in a change to the control, {\tt FALSE}
ch = _T('/');
break;
+ case WXK_DELETE:
+ case WXK_NUMPAD_DELETE:
+ // delete the character at cursor
+ {
+ const long pos = GetInsertionPoint(),
+ last = GetLastPosition();
+ if ( pos < last )
+ Remove(pos, pos + 1);
+ }
+ break;
+
+ case WXK_BACK:
+ // delete the character before the cursor
+ {
+ const long pos = GetInsertionPoint();
+ if ( pos > 0 )
+ Remove(pos - 1, pos);
+ }
+ break;
+
default:
if ( keycode < 256 && keycode >= 0 && wxIsprint(keycode) )
{