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 keyboard focus of rename method refactoring window #16835

Open
wants to merge 2 commits into
base: Pharo13
Choose a base branch
from

Conversation

Inao0
Copy link
Contributor

@Inao0 Inao0 commented Jun 28, 2024

Fix #16699 by setting the keyboard focus after the window is opened.

There is something weird on SpTextInputFieldPresenter.

In SpTextInputFieldPresenter>>takeKeyboardFocusWithoutSelecting the comments state
"Unlike `takeKeyboardFocus` this method will not select the text inside."

However SpTextInputFieldPresenter>>takeKeyboardFocus does not select by default, hence the additional selectAll in the implementation.

…w is opened.

There is something weird on SpTextInputFieldPresenter.
In SpTextInputFieldPresenter>>takeKeyboardFocusWithoutSelecting the comments state "Unlike `takeKeyboardFocus` this method will not select the text inside." however SpTextInputFieldPresenter>>takeKeyboardFocus does not select by default, hence the additional selectAll in the implementation.
@Ducasse
Copy link
Member

Ducasse commented Jun 29, 2024

This is strange because I do not see any files changed

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.

[Refactorings] Rename refactoring should focus the input field
2 participants