Merge pull request #6168 from electron/forward-delete
Support forward delete menu item accelerator
This commit is contained in:
commit
c0aebc9d4f
2 changed files with 5 additions and 0 deletions
|
@ -29,6 +29,10 @@ void SetPlatformAccelerator(ui::Accelerator* accelerator) {
|
|||
modifiers ^= NSShiftKeyMask;
|
||||
}
|
||||
|
||||
if (character == NSDeleteFunctionKey) {
|
||||
character = NSDeleteCharacter;
|
||||
}
|
||||
|
||||
NSString* characters =
|
||||
[[[NSString alloc] initWithCharacters:&character length:1] autorelease];
|
||||
|
||||
|
|
|
@ -86,6 +86,7 @@ app.once('ready', () => {
|
|||
},
|
||||
{
|
||||
label: 'Delete',
|
||||
accelerator: 'Delete',
|
||||
role: 'delete'
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue