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

Do not show duplicate cursor when alt-z is pressed #6120

Merged
merged 3 commits into from
Jul 25, 2024

Conversation

gbalint
Copy link
Contributor

@gbalint gbalint commented Jul 25, 2024

Problem:
In #6115 I did not put the logic into the proper, already existing function, and I caused a regression (duplicate cursor was shown when alt-z was pressed)

Fix:
Revert my original solution and put the logic into the existing cursorForKeysPressed function.
Add new tests to make sure this regression does not happen again.

Manual Tests:
I hereby swear that:

  • I opened a hydrogen project and it loaded
  • I could navigate to various routes in Preview mode

Copy link
Contributor

github-actions bot commented Jul 25, 2024

Try me

Copy link

relativeci bot commented Jul 25, 2024

#13519 Bundle Size — 62.63MiB (~-0.01%).

bf3b46d(current) vs 6339ece master#13510(baseline)

Warning

Bundle contains 70 duplicate packages – View duplicate packages

Bundle metrics  Change 2 changes Improvement 1 improvement
                 Current
#13519
     Baseline
#13510
Improvement  Initial JS 45.7MiB(~-0.01%) 45.7MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 21.54% 22.16%
No change  Chunks 31 31
No change  Assets 34 34
No change  Modules 4380 4380
No change  Duplicate Modules 525 525
No change  Duplicate Code 31.65% 31.65%
No change  Packages 469 469
No change  Duplicate Packages 70 70
Bundle size by type  Change 2 changes Improvement 2 improvements
                 Current
#13519
     Baseline
#13510
Improvement  JS 62.62MiB (~-0.01%) 62.62MiB
Improvement  HTML 11.16KiB (-0.33%) 11.2KiB

Bundle analysis reportBranch fix/duplicate-cursor-2Project dashboard

@gbalint gbalint merged commit de1cdd3 into master Jul 25, 2024
13 checks passed
@gbalint gbalint deleted the fix/duplicate-cursor-2 branch July 25, 2024 08:47
liady pushed a commit that referenced this pull request Dec 13, 2024
**Problem:**
In #6115 I did not put
the logic into the proper, already existing function, and I caused a
regression (duplicate cursor was shown when alt-z was pressed)

**Fix:**
Revert my original solution and put the logic into the existing
`cursorForKeysPressed` function.
Add new tests to make sure this regression does not happen again.

**Manual Tests:**
I hereby swear that:

- [x] I opened a hydrogen project and it loaded
- [x] I could navigate to various routes in Preview mode
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.

3 participants