]> git.saurik.com Git - wxWidgets.git/commit
Fix use of DELETE and BACKSPACE when starting editing grid with them.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 3 Oct 2010 17:34:22 +0000 (17:34 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 3 Oct 2010 17:34:22 +0000 (17:34 +0000)
commitb7ff06ad158d6c3c859eb3241ad6f5c038fef7f4
treea1bcc99f36b656d293480e9ef965721601160726
parent6a1e8a634a09fa3ff09fe5190429f47e37b1930e
Fix use of DELETE and BACKSPACE when starting editing grid with them.

Using the current insertion position in wxGridCellTextEditor::StartingKey()
didn't make much sense, it was always 0 -- so DELETE worked as expected and
did delete the first character of the cell but BACKSPACE never did anything.

Just always delete the first character when DELETE is used and always delete
the last one when BACKSPACE is.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/generic/grideditors.cpp