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

Copy n paste shortcut issue on Mac OS #19

Closed
dexterouschen opened this issue Aug 28, 2017 · 0 comments
Closed

Copy n paste shortcut issue on Mac OS #19

dexterouschen opened this issue Aug 28, 2017 · 0 comments

Comments

@dexterouschen
Copy link
Contributor

dexterouschen commented Aug 28, 2017

It works fine on WIndows but the the copy shortcut on Mac is control + C while the paste is command + V.

Updated: with further inspection, window.clipboardData is undefined and paste event doesn't fire properly on Mac, both Chrome and Safari.

Updated: I would suggest adding

if (e.metaKey && ! e.shiftKey && ! e.ctrlKey) { if(e.which == 67) { // Command + C, Mac $('#' + $.fn.jexcel.current).jexcel('copy', true); e.preventDefault(); } }

to ln 871 of jquery.jexcel.js in order to be consistent on Mac

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

No branches or pull requests

1 participant