Repository navigation
Wire up select all edit menu item to multi-select lists - #4509
Merged
Merged
Conversation
Member
Member
Author
|
Yup!
…On Mon, 23 Apr 2018 at 22:41, Brendan Forster ***@***.***> wrote:
@niik <https://github.com/niik> this feels like it will close out #3821
<#3821>, right?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4509 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAmszyA05-IIhGgTHnyXP_f9oau09_nJks5trjx2gaJpZM4Tgh8T>
.
|
shiftkey
suggested changes
Apr 23, 2018
shiftkey
left a comment
Member
There was a problem hiding this comment.
One minor thing, everything else is 💎
|
|
||
| this.list = element | ||
|
|
||
| if (element) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| cancelable: true, | ||
| }) | ||
|
|
||
| if (document.activeElement.dispatchEvent(event)) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Member
Author
|
🔩 |
shiftkey
approved these changes
Apr 24, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3821
This is a continuation of #4188 that wires up the "Select All" Edit menu item such that when keyboard focus resides within a List (which supports range or multi selection) the list deals with the event rather than the default electron action which selects all selectable text in the currently focused window.
We do this by moving the handling of the select-all menu item to the renderer and dispatching a custom DOM event to the element where keyboard focus currently resides and letting it bubble. Components then have the option to intercept that event and cancel the default action.