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(ui-sheets): fix incorrect ctrl key detection in macOS #452

Closed
wants to merge 1 commit into from

Conversation

jikkai
Copy link
Member

@jikkai jikkai commented Nov 14, 2023

No description provided.

Copy link

codecov bot commented Nov 14, 2023

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (daa57e9) 38.60% compared to head (94c9abf) 38.59%.

Files Patch % Lines
...src/services/selection/selection-render.service.ts 0.00% 3 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #452      +/-   ##
==========================================
- Coverage   38.60%   38.59%   -0.01%     
==========================================
  Files         218      218              
  Lines       13627    13630       +3     
  Branches     2690     2691       +1     
==========================================
  Hits         5261     5261              
- Misses       7054     7056       +2     
- Partials     1312     1313       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

View Deployment

📝 Doc 📊 Sheet 📽️ Slide
🔗 Preview link 🔗 Preview link 🔗 Preview link

View Storybook

📚 Storybook
🔗 Preview link

@@ -473,7 +477,8 @@ export class SelectionRenderService implements ISelectionRenderService {
}

// In addition to pressing the ctrl or shift key, we must clear the previous selection
if (curControls.length > 0 && !evt.ctrlKey && !evt.shiftKey && !this._isShowPreviousEnable) {
const ctrlKey = this._platformService.isMac ? evt.metaKey : evt.ctrlKey;
Copy link
Member

Choose a reason for hiding this comment

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

Extract this function to shortcut related module.

@jikkai jikkai marked this pull request as draft November 15, 2023 03:05
@jikkai jikkai closed this Nov 16, 2023
@jikkai jikkai deleted the fix/selection-key branch November 23, 2023 08:25
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.

None yet

2 participants