Make NSDeleteFunctionKey to NSDeleteCharacter

This commit is contained in:
Kevin Sawicki 2016-06-21 12:33:02 -07:00
parent 59ff3dc2f3
commit 738edb650d

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