Merge pull request #6168 from electron/forward-delete

Support forward delete menu item accelerator
This commit is contained in:
Cheng Zhao 2016-06-22 01:12:10 +00:00 committed by GitHub
commit c0aebc9d4f
2 changed files with 5 additions and 0 deletions

View file

@ -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];