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

Labeling and shortcut errors in menus #816

Closed
2 of 11 tasks
mirka opened this issue Aug 31, 2018 · 5 comments
Closed
2 of 11 tasks

Labeling and shortcut errors in menus #816

mirka opened this issue Aug 31, 2018 · 5 comments
Labels
bug Something isn't working enhancement Improve existing functionality keyboard Keyboard-related issue

Comments

@mirka
Copy link
Member

mirka commented Aug 31, 2018

There are some errors in the menus that make the app feel less native.

Most of these can be fixed by adding the correct role and/or removing the label where unnecessary, as Electron has a lot of the logic built in.

We should probably do some refactoring to allow easier per-platform logic based on composition, since we will be adding more menu items. The current system is quite error-prone and is bloating the app.js file.

all

  • accelerator for “Font Size ▸ Bigger” should be CommandOrControl+Plus instead of CommandOrControl+= (Quirk seems to be fixed now) (adjusted menu to display zoom at view root level #863)
  • Multi-step items (“Preferences”, “Export Notes”, “Print”, “Search Notes”) should have an ellipsis appended

darwin

  • Shortcut for “Hide Others” should be Cmd+Opt+H
  • “Hide” and “Quit” should be suffixed by app name
  • Help menu should include searchable field (can be achieved by adding role: 'help')
  • “Bring All to Front” is in the wrong menu ([macOS] Put “Bring All to Front” in proper menu #813)

linux

  • “Exit” should be “Quit”
  • Window menu should not exist
  • Help / Help & Support is duplicated

win32

  • Shortcut for “Redo” should be Ctrl+Y
  • Window menu should not exist
@mirka mirka added bug Something isn't working enhancement Improve existing functionality labels Aug 31, 2018
@rakhi2104
Copy link
Contributor

Shortcut for “Redo” should be Ctrl+Y

is it applicable only to Windows ?

@mirka
Copy link
Member Author

mirka commented Oct 12, 2018

Shortcut for “Redo” should be Ctrl+Y

is it applicable only to Windows ?

Yes, and I think removing the explicit accelerator property and using just role: 'redo' would work, because the logic is baked into Electron. We are actually overwriting the platform logic by adding an accelerator ourselves 😅

@rakhi2104
Copy link
Contributor

Updating those changes @mirka.
Thanks for reviewing

@rakhi2104
Copy link
Contributor

Most of the edit commands already have role assigned in the code.
Is accelerator overriding them ?

@mirka
Copy link
Member Author

mirka commented Oct 15, 2018

Most of the edit commands already have role assigned in the code.
Is accelerator overriding them ?

That's correct. So my plan was to look at the Electron code for menu item roles, and remove any properties from our code that is unnecessary.

We still have to override the labels though, because the default labels don't include Windows access keys. (That's what the ampersands in the labels are)

@mirka mirka added the keyboard Keyboard-related issue label Oct 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement Improve existing functionality keyboard Keyboard-related issue
Projects
None yet
Development

No branches or pull requests

2 participants