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 focus on rename UI opening #60846

Merged
merged 8 commits into from
May 13, 2022
Merged

Fix focus on rename UI opening #60846

merged 8 commits into from
May 13, 2022

Conversation

ryzngard
Copy link
Contributor

@ryzngard ryzngard commented Apr 19, 2022

Previously the new adornment would not focus correctly. This changes to use the Load event and calls focus on the control directly.

It also cleans up some wording and usage of "Dashboard", which is not always correct now.

Fixes #60035

@ryzngard ryzngard requested review from a team as code owners April 19, 2022 22:03
@ryzngard ryzngard enabled auto-merge (squash) April 21, 2022 17:16
{
if (GetDashboard(textView) is { } dashboard)
if (GetAdornment(textView) is RenameDashboard dashboard)
{
dashboard.FocusNextElement();
Copy link
Member

Choose a reason for hiding this comment

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

Should this be .FocusPreviousElement()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh it definitely should... idk what that will break though :) I'll file an issue to change it

@ryzngard ryzngard merged commit 9529d26 into dotnet:main May 13, 2022
@ghost ghost added this to the Next milestone May 13, 2022
333fred added a commit to 333fred/roslyn that referenced this pull request May 16, 2022
…o poison

* upstream/features/required-members: (413 commits)
  [EE] Implement IDkmClrFullNameProvider2 in Roslyn's ResultProvider Formatter. (dotnet#60522)
  Remove parameter null-checking from the Language Feature Status list (dotnet#61302)
  Add pointer for `AnalysisLevel` to warning waves doc (dotnet#61196)
  Add an UWP OptProf test for IDE
  Add test
  Fix issue where we were getting a raw-string in a skipped token, causing a crash
  Fix several LSP completion kind mappings (dotnet#61243)
  Relax assertion in SyntheticBoundNodeFactory.Convert (dotnet#61287)
  Enable add usings on paste by default (dotnet#61299)
  Fix focus on rename UI opening (dotnet#60846)
  Update PublishData.json with new package
  Remove Razor and editor inference document option providers (dotnet#61091)
  Fix nested in generic type binding issues in enabled nullability context (dotnet#61182)
  Revert "Revert "Improve editorconfig options caching on ProjectState (dotnet#61131)" (dotnet#61216)" (dotnet#61283)
  Move MSBuild back to 16.5.0.
  Fix a few build and package issues (dotnet#61273)
  lint
  Revert workspaces msbuild changes.
  Use SegmentedHashSet<T> to eliminate LOH allocations in AsyncBatchingWorkQueue
  NRT
  ...
@Cosifne Cosifne modified the milestones: Next, 17.3 P2 May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Rename UI doesn't auto-focus
3 participants