p***@gmail.com
2014-03-31 02:14:56 UTC
Hi All,
I'm having this strange issue with tab navigation on OSX and hope someone
can shed some light on how it's supposed to work.
I have wxAuiNotebook and when I use Ctrl-Tab and Ctrl-Shift-Tab, everything
work until I get to the first or the last tab. After that the control jumps
to some other (seemingly arbitrary) component on the same frame (it may be
a tab in a different wxAuiNotebook or a different control). It happens
absolutely consistently, which produces very strange and inconvenient
effect as it completely breaks the navigation. I tested on Windows and the
behavior is absolutely correct there (with tab navigation wrapping around
the tabs in the same notebook).
What's even stranger is that I can attach wxEVT_NAVIGATION_KEY event to the
notebook and I can get to see (and cancel if I want to) these events on
Windows; the same event is not triggered on OSX. Obviously, my controls
don't get to see the TAB key when it's pressed, so I can't do anything to
overwrite this behavior.
I did find an early post from Vadim on this topic
(https://groups.google.com/d/msg/wx-users/0iz_DZiZd0c/5dfiRAKTJYEJ), but he
simply stated there that Ctrl-Tab should work in this case.
I tested this behavior on 2.9.5 and on 3.1 (from couple of weeks ago) and
it doesn't work in exactly the same way on OSX. I tried with the aui sample
and while it does show the same strange behavior (on OSX). I vaguely
remember that I might have already commented on this in one of the tickets,
but with trac being down for upgrade I can't check.
I can try to debug it further, but what part of the code handles this
logic? It seems like it's handled somewhere
in wxWindowBase::DoMoveInTabOrder and wxWindowBase::HandleAsNavigationKey,
but I'm not certain.
Is there a way to intercept this event and provide my own tab navigation? I
tried attaching EVT_NAVIGATION_KEY to the notebook and to the frame itself,
I tried catching TAB key and few other desperate attempts, but so far
nothing has worked.
Paul.
I'm having this strange issue with tab navigation on OSX and hope someone
can shed some light on how it's supposed to work.
I have wxAuiNotebook and when I use Ctrl-Tab and Ctrl-Shift-Tab, everything
work until I get to the first or the last tab. After that the control jumps
to some other (seemingly arbitrary) component on the same frame (it may be
a tab in a different wxAuiNotebook or a different control). It happens
absolutely consistently, which produces very strange and inconvenient
effect as it completely breaks the navigation. I tested on Windows and the
behavior is absolutely correct there (with tab navigation wrapping around
the tabs in the same notebook).
What's even stranger is that I can attach wxEVT_NAVIGATION_KEY event to the
notebook and I can get to see (and cancel if I want to) these events on
Windows; the same event is not triggered on OSX. Obviously, my controls
don't get to see the TAB key when it's pressed, so I can't do anything to
overwrite this behavior.
I did find an early post from Vadim on this topic
(https://groups.google.com/d/msg/wx-users/0iz_DZiZd0c/5dfiRAKTJYEJ), but he
simply stated there that Ctrl-Tab should work in this case.
I tested this behavior on 2.9.5 and on 3.1 (from couple of weeks ago) and
it doesn't work in exactly the same way on OSX. I tried with the aui sample
and while it does show the same strange behavior (on OSX). I vaguely
remember that I might have already commented on this in one of the tickets,
but with trac being down for upgrade I can't check.
I can try to debug it further, but what part of the code handles this
logic? It seems like it's handled somewhere
in wxWindowBase::DoMoveInTabOrder and wxWindowBase::HandleAsNavigationKey,
but I'm not certain.
Is there a way to intercept this event and provide my own tab navigation? I
tried attaching EVT_NAVIGATION_KEY to the notebook and to the frame itself,
I tried catching TAB key and few other desperate attempts, but so far
nothing has worked.
Paul.
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users