DeltaEscher / editra

Automatically exported from code.google.com/p/editra
Other
0 stars 0 forks source link

Ctrl+Tab to browse opened windows not working OK #513

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Editra HEAD
wxMSW 2.8.10.1-unicode
Windows XP SP2

Open at least 2 files (say Tab1 and Tab2).
Ctrl-Tab switches OK through the opened files.
However if I switch from Tab1 to Tab2 the cursor is still moving in Tab1.
Any input subsequent to the Ctrl-Tab is still sent to the previous tab,
unless the focus is explicitly set to the next tab with a mouse click.

Original issue reported on code.google.com by cow...@gmail.com on 6 May 2010 at 10:26

GoogleCodeExporter commented 8 years ago
Confirmed (windows only issue)

This problem existed once before but the workaround does not seem to work with 
the
new notebook control. Spent a lot of time on this today and an rather stuck. 
For some
reason the focus will not go to the tab it is supposed to when switching via the
smart tab feature...

Original comment by CodyPrec...@gmail.com on 9 May 2010 at 6:07

GoogleCodeExporter commented 8 years ago
I've given this a few cycles of brain without luck.
Basically I think that relevant code should be in:
EdPages::ChangePage
and maybe in:
EdEditorView::DoDeactivateTab

Tried to play with STC Get/SetSTCFocus, no luck.
Tried to build a left mouse click event and send it to the STC control, no luck 
either.
At the moment I've no idea on how to handle this stuff...

Original comment by cow...@gmail.com on 13 May 2010 at 8:59

GoogleCodeExporter commented 8 years ago
Thanks for testing. I have a few more ideas I am going to try. I think that the 
root
of the problem is in src/extern/aui/auibook.py. I think that the tab navigator 
window
gets shown in the middle of a key event and then when a selection is made it 
calls
set focus. After the setfocus is processed the keyevent returns and I think 
that on
windows it must cause the focus to shift back to the window where the key event
originated from.

Think that possibly using CallAfter to call SetFocus in the auibooks code may 
work.
(I can only hope as this has been a painful issue to work on.

Cody

Original comment by CodyPrec...@gmail.com on 13 May 2010 at 12:32

GoogleCodeExporter commented 8 years ago
Should be fixed in svn now. Finally found the magic touch ;)

Original comment by CodyPrec...@gmail.com on 13 May 2010 at 4:45

GoogleCodeExporter commented 8 years ago
Oh yeah! Works in SVN HEAD, wxMSW 2.8.10.1-unicode, Windows XP SP2.
Great job, man!

Original comment by cow...@gmail.com on 14 May 2010 at 8:02