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 select all keyboard shortcut in lists on Windows #7767

Merged
merged 4 commits into from
Jun 11, 2019

Conversation

niik
Copy link
Member

@niik niik commented Jun 11, 2019

Overview

Closes #7759

Description

When a user invokes the Select All menu item under the Edit menu Desktop dispatches a custom DOM event called select-all which components can (currently only List implements this) elect to handle. #7759 pointed out that Ctrl+A doesn't work on Windows and it turns out that this is a known problem where Chromium will steal a few select keyboard shortcuts (Ctrl+A, Ctrl+Z, etc) in such a way that Electron doesn't have a chance to match them to menu item accelerators.

This PR adds a special case for Windows in lists so that we handle the DOM event for Ctrl+A and treat it the same way as we would the select-all custom DOM event.

Release notes

Notes: [Fixed] Ctrl+A keyboard shortcut didn't select all changed files on Windows.

@niik niik added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Jun 11, 2019
@shiftkey shiftkey added this to the 2.0.4 milestone Jun 11, 2019
@iAmWillShepherd iAmWillShepherd self-assigned this Jun 11, 2019
Copy link
Contributor

@iAmWillShepherd iAmWillShepherd left a comment

Choose a reason for hiding this comment

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

it-works

@shiftkey shiftkey added this to Needs to be Prioritized in PR Priority via automation Jun 11, 2019
@shiftkey shiftkey moved this from Needs to be Prioritized to Awaiting Merge in PR Priority Jun 11, 2019
@iAmWillShepherd iAmWillShepherd merged commit 863382e into development Jun 11, 2019
PR Priority automation moved this from Awaiting Merge to Done Jun 11, 2019
@iAmWillShepherd iAmWillShepherd deleted the select-all-the-windows branch June 11, 2019 17:41
@shiftkey shiftkey mentioned this pull request Jun 11, 2019
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-review Pull Requests that are ready to be reviewed by the maintainers
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Select all changes with Ctrl + A
3 participants