Ticket #3821 (confirmed defect)
wxComboBox doesn't process correctly TAB or SHIFT+TAB
| Reported by: | climentml | Owned by: | csomor |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wxOSX-Cocoa | Version: | |
| Keywords: | wxComboBox key navigate | Cc: | climentml, csomor |
| Blocked By: | 15003, 15003, 15003, 15003 | Patch: | no |
| Blocking: |
Description
Context:
wxMac 2.8.0 stable, Mac OS X 10.4.8 Tiger, XCode 2.4, GCC 4.0.1
Multiple controls on a wxDialog, one of them is a wxComboBox. Tab navigation works fine when only TAB key is pressed, but when trying navigating backwards using SHIFT+TAB, the navigation works okay only till reaching the wxComboBox. From there, it will loop between wxComboBox and the next (in the TAB order) control (set with MoveAfterInTabOrder in my case).
The problem can also be reproduced using the 'controls' sample found in the samples directory, when selecting the 'wxComboBox' tab.
Changing in wxComboBox::OnChar implementation (wxMac-2.8.0/src/mac/carbon/combobox.cpp)
NavEvent.SetDirection(true);
with
NavEvent.SetDirection(!event.ShiftDown());
fixed the problem for me.

