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

Enable accelerators for edit options #150

Open
parkerholladay opened this issue Sep 30, 2021 · 1 comment
Open

Enable accelerators for edit options #150

parkerholladay opened this issue Sep 30, 2021 · 1 comment

Comments

@parkerholladay
Copy link

parkerholladay commented Sep 30, 2021

For the edit options such as Copy, Cut, and Paste that have system hotkeys, it would be helpful to have a flag that you could use to enable the CmdOrCtrl+C, etc. hotkeys to be displayed in the MenuItem[]. That could look something like the following:

{
  ...options,
  showEditAccelerators: true
}

Another possibility would be to extend the labels option to allow not just a string, but an object for the string label and an accelerator. i.e.

{
  ...options,
  labels: {
    copy: {
      label: 'Copy',
      accelerator: 'CmdOrCtrl+C'
    }
  }
}

I'd be more than happy to submit a PR depending on which route you prefer architecturally.

@Bartel-C8
Copy link

It was once suggested here, but declined back then...
#87

For MacOS (only?), the shortcuts CMD + C & CMD + V do not work, if no accelerator are defined for these actions...

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

2 participants