Ticket #11630 (confirmed defect)

Opened 3 years ago

Last modified 21 months ago

unable to tab out of a GenericDatePickerCtrl

Reported by: mrooney1 Owned by:
Priority: normal Milestone:
Component: wxGTK Version: 2.9-svn
Keywords: wxComboCtrl Cc:
Blocked By: Patch: no
Blocking:

Description

Reported after requested to do so in  http://groups.google.com/group/wxpython-users/browse_thread/thread/77a4396249dc984d.

I'm noticing that on Ubuntu 9.10 with wxPython 2.8.10.1-0ubuntu1 I can tab into a DatePickerCtrl (Generic as is the case on GTK), but not tab out of, either forward or backward. I've pasted a minimal sample to demonstrate this at  http://python.pastebin.com/fe7c1621 (and attached it); you'll notice you can tab into it from the second control and shift+tab back from the fourth, but there is no way to get out of it it appears!

Apparently on OSX tabs work as expected, so perhaps it is a bug in a GenericDatePickerCtrl?

Anyway, if this is a bug that needs to be fixed in wxPython but there is a workaround, I'd LOVE to hear it, however dirty it may be, as this bug in my app is milestoned to be fixed for the impending release.

Attachments

fe7c1621.py download (0.6 KB) - added by mrooney1 3 years ago.
sample demonstrating the issue

Change History

Changed 3 years ago by mrooney1

sample demonstrating the issue

Changed 3 years ago by jmsalli

  • status changed from new to confirmed

I can reproduce the issue with the standard calendar sample. Thanks for reporting it.

Changed 3 years ago by JMS

  • status changed from confirmed to closed
  • resolution set to fixed

(In [63158]) When checking whether the parent control has wxTAB_TRAVERSAL, take into account that the wxComboCtrl can be part of a composite control, such as generic wxDatePickerCtrl (fixes #11630).

Changed 3 years ago by jmsalli

As a workaround, you could try using wx.TAB_TRAVERSAL style for the date picker control.

Changed 3 years ago by mrooney1

Thanks for the lightning fast fix and the workaround, it works perfectly!

Changed 3 years ago by jmsalli

  • keywords wxComboCtrl added
  • status changed from closed to reopened
  • version changed from 2.8.10 to 2.9-svn
  • resolution deleted

Reopened to remind that this bug still exists in wx2.9. Navigation code was changed, and the new wxGTK wxWindow::DoNavigateIn() doesn't seem to allow navigating out of composite controls (wxSearchCtrl seems to suffer from the same), even if focus is moved to the topmost part of the composite window prior to DoNavigateIn() call. Dispatching wxNavigationKeyEvent manually (as is done in wx2.8) does not work anymore either.

Changed 3 years ago by jmsalli

  • status changed from reopened to confirmed

Changed 21 months ago by fsenore

I have found this problem too. I have checked and it still happens in the latest svn trunk.

I have also discovered a similar problem in Windows using the generic date picker control: TAB works until I open the combo. After opening the combo it is not possible to tab out of the control any more.

I read in wxBlog that a new class (wxNavigationEnabled) has been added to fix a similar problem (at least it looks similar).
Are there chances that that class could fix this problem too?

Note: See TracTickets for help on using tickets.