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

Handle native chromium undo, redo, cut, copy, paste, selectAll on all platforms - #7770

Merged
nathansobo merged 1 commit into
masterfrom
ns-only-forward-menu-action-on-osx
Jul 8, 2015
Merged

nathansobo merged 1 commit into
masterfrom
ns-only-forward-menu-action-on-osx

Conversation

@nathansobo

Copy link
Copy Markdown
Contributor

Our current approach relies on menu.sendActionToFirstResponder, which is only defined on OS X. It would be good to actually make this work elsewhere, but this will at least prevent the exception for the undefined method.

Closes #6587

@anaisbetts

Copy link
Copy Markdown
Contributor

@nathansobo
nathansobo force-pushed the ns-only-forward-menu-action-on-osx branch from 030648a to a4d716c Compare July 7, 2015 21:34
@nathansobo

Copy link
Copy Markdown
Contributor Author

@paulcbetts Thanks for that. Check out the amended PR. I would actually like to always handle these commands if they bubble to the root of the document without the default being prevented or propagation being stopped, but changing the behavior now might introduce unintended consequences. I'm just going to fix the exception for now.

@anaisbetts

Copy link
Copy Markdown
Contributor

@nathansobo Seems Legit™

@nathansobo nathansobo changed the title Only handle special native key bindings on OS X Handle native chromium undo, redo, cut, copy, paste, selectAll on all platforms Jul 8, 2015
nathansobo pushed a commit that referenced this pull request Jul 8, 2015
Handle native chromium undo, redo, cut, copy, paste, selectAll on all platforms
@nathansobo
nathansobo merged commit 4091fa9 into master Jul 8, 2015
@nathansobo
nathansobo deleted the ns-only-forward-menu-action-on-osx branch July 8, 2015 00:26

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just a heads up, there is an atom.getCurrentWindow() API

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh jeez you're right.

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.

3 participants