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

Grab focus to terminal widget when restoring #204

Merged
merged 3 commits into from
Jan 25, 2018

Conversation

Thalexander
Copy link
Collaborator

The tab was being focused not the terminal widget.

Fixes #203

Copy link
Collaborator

@jeremypw jeremypw left a comment

Choose a reason for hiding this comment

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

This fixes the issue. You might as well fix the related issue
in on_switch_page () function - again, the terminal widget should grab focus, not the tab.

@Thalexander
Copy link
Collaborator Author

I have done so, although I am noticing some unusual cursor behaviour with this. I am not sure if that is because of this commit or if it just makes it more visible.

@jeremypw
Copy link
Collaborator

jeremypw commented Jan 24, 2018

This effect can be fixed by grabbing focus in an Idle loop rather than immediately inside the signal handler.

Copy link
Collaborator

@jeremypw jeremypw left a comment

Choose a reason for hiding this comment

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

Looks good now, thanks!

@jeremypw jeremypw merged commit 1f3903c into master Jan 25, 2018
@danirabbit danirabbit deleted the restore-grab-term-focus branch March 11, 2018 20:41
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