fix: default accelerator for role-based menu items (#49558)

fix: apply default accelerator for role-based menu items

Co-authored-by: Kimgun3383 <tygob5247@gmail.com>
This commit is contained in:
Shelley Vohr
2026-02-04 22:45:29 +01:00
committed by GitHub
parent 4ea2d816b8
commit 9740c989da
4 changed files with 64 additions and 4 deletions

View File

@@ -107,7 +107,7 @@ A `string` (optional) indicating the item's role, if set. Can be `undo`, `redo`,
#### `menuItem.accelerator`
An `Accelerator` (optional) indicating the item's accelerator, if set.
An `Accelerator | null` indicating the item's accelerator, if set.
#### `menuItem.userAccelerator` _Readonly_ _macOS_