Merge pull request #11166 from sethlu/openrecent

feat: Recent documents menu item
This commit is contained in:
Cheng Zhao 2017-11-28 10:55:14 +09:00 committed by GitHub
commit b161a4f515
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 106 additions and 6 deletions

View file

@ -88,6 +88,8 @@ The following additional roles are available on macOS:
* `window` - The submenu is a "Window" menu
* `help` - The submenu is a "Help" menu
* `services` - The submenu is a "Services" menu
* `recentdocuments` - The submenu is an "Open Recent" menu
* `clearrecentdocuments` - Map to the `clearRecentDocuments` action
When specifying a `role` on macOS, `label` and `accelerator` are the only
options that will affect the menu item. All other options will be ignored.