]> git.saurik.com Git - wxWidgets.git/commit
Don't require leading TAB in wxAcceleratorEntry::FromString().
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 3 Dec 2010 12:39:57 +0000 (12:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 3 Dec 2010 12:39:57 +0000 (12:39 +0000)
commit944f641cf9e822770d667be45926e58deb339482
tree3121c4aaa66a37310a27d5db73d6ed0db68e618b
parent238ecc7c521f90de01d008e096c06892d9e8a03e
Don't require leading TAB in wxAcceleratorEntry::FromString().

FromString() should parse string returned by ToString() successfully but this
wasn't the case because the accelerator parsing functions always insisted on
having a TAB in the string.

Fix this, document the string format and add a unit test checking for the
correct behaviour.

Closes #12745.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
13 files changed:
interface/wx/accel.h
src/common/accelcmn.cpp
tests/Makefile.in
tests/makefile.bcc
tests/makefile.gcc
tests/makefile.vc
tests/makefile.wat
tests/menu/accelentry.cpp [new file with mode: 0644]
tests/test.bkl
tests/test_test_gui.dsp
tests/test_vc7_test_gui.vcproj
tests/test_vc8_test_gui.vcproj
tests/test_vc9_test_gui.vcproj