Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix split editor area pane focus #89

Merged
merged 5 commits into from
Jun 21, 2013

Conversation

pberkes
Copy link
Contributor

@pberkes pberkes commented Jun 20, 2013

If an editor contains tabs, after certain operations (e.g., navigating
the editor tabs using keyboard shortcuts) a change in focus
sets the editor area pane active_tabwidget to one of those internal tabs,
rather than to the tab of the editor in the editor area.

This causes problems, e.g. in this example I added two editors, and one got inserted inside the other:

image

Pietro Berkes added 3 commits June 20, 2013 14:58
…abs.

If an editor contains tabs, after certain operations (e.g., navigating
the editor tabs using keyboard shortcuts) a change in focus
sets the editor area pane `active_tabwidget` to one of those internal tabs,
rather than to the tab of the editor in the editor area.
@pberkes
Copy link
Contributor Author

pberkes commented Jun 20, 2013

@agrawalprash @pankajp Hopefully, I got your intention right here... Could you please review and see if the fix makes sense? I'm still a bit insecure when it comes to having multiple splits.



@contextmanager
def event_loop():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please either rename this to event_loop_qt or move it to ui.qt4.utils? Thanks.

@agrawalprash
Copy link
Contributor

@pberkes Thanks for catching this case and fixing it. And thanks for PEP8'ing it. Apart from a minor comment, this looks good to me.

@pberkes
Copy link
Contributor Author

pberkes commented Jun 21, 2013

@agrawalprash I moved the qt-specific testing utils to pyface.ui.qt4.util

agrawalprash added a commit that referenced this pull request Jun 21, 2013
@agrawalprash agrawalprash merged commit 8d896ff into master Jun 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants