Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Conversation

@winstliu
Copy link
Contributor

@winstliu winstliu commented Nov 15, 2017

Requirements

  • Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
  • All new code requires tests to ensure against regressions

Description of the Change

Makes the context menu async, which is important for perceived performance and UX. No longer will everything freeze when opening a context menu. Here's a gif of snowfall!
async-context-menu

Alternate Designs

None.

Why Should This Be In Core?

Context menu handling occurs in the main process.

Benefits

Context menus no longer block the renderer process until they are closed.

Possible Drawbacks

Per electron/electron#9441 it is not possible to detect when the context menu is closed. Atom currently does not track context menu state so I think this compromise is fine.

Applicable Issues

Supersedes and closes #13398
Fixes #2991
Refs #13617, though it looks like right-click isn't properly focusing the tab so more investigation will be needed.

@winstliu
Copy link
Contributor Author

winstliu commented Nov 15, 2017

Follow-up issues:

@winstliu winstliu force-pushed the wl-async-context-menu branch from 8a81c9f to a59913f Compare November 15, 2017 20:50
@lee-dohm
Copy link
Contributor

/cc @BinaryMuse to review

@BinaryMuse
Copy link
Contributor

The concern I had about the right-click hijacking hack in the GitHub package appears to be fine with this change. 👍 to merge once it's green!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rightclick in the treeview doesn't focus the selected item directly

5 participants