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

If it's OK to do so, drive focus into the newly-created CodeEditorWidget #4685

Merged

Conversation

softwarenerd
Copy link
Contributor

@softwarenerd softwarenerd commented Sep 14, 2024

Description

This PR addresses #4136.

Prior to this PR, after a user is prompted for input, the Console does not scroll to or focus the next ConsoleInput:

Screen.Recording.2024-09-13.at.6.48.53.PM.mov

With this PR, after a user is prompted for input, the Console scrolls to and focuses the next ConsoleInput:

Screen.Recording.2024-09-13.at.6.50.16.PM.mov

QA Notes

To test this, open an R console and press Enter until it begins to scroll. Then execute:

x <- menu(letters)

And provide input. Notice that when the next ConsoleInput is rendered, it will be scrolled into view and focused.

Copy link
Contributor

@lionel- lionel- left a comment

Choose a reason for hiding this comment

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

LGTM!

This will be a very nice QOL improvement for devtools users.

Copy link
Contributor

@dfalbel dfalbel left a comment

Choose a reason for hiding this comment

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

LGTM! Also tested it works with Python input()

@softwarenerd softwarenerd merged commit 10f5bb3 into main Sep 16, 2024
2 checks passed
@softwarenerd softwarenerd deleted the console-ui/scroll-to-bottom-after-providing-input branch September 16, 2024 16:59
@github-actions github-actions bot locked and limited conversation to collaborators Sep 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants