mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Mac: Fix 10.10 SDK compile and test errors (issue #1414)
This commit is contained in:
@ -348,8 +348,13 @@ extern "C" {
|
||||
// doesn't call any NSTextInput functions, such as setMarkedText or
|
||||
// insertText. So, we need to send an IPC message to a renderer so it can
|
||||
// delete the composition node.
|
||||
// TODO(erikchen): NSInputManager is deprecated since OSX 10.6. Switch to
|
||||
// NSTextInputContext. http://www.crbug.com/479010.
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
NSInputManager *currentInputManager = [NSInputManager currentInputManager];
|
||||
[currentInputManager markedTextAbandoned:self];
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
hasMarkedText_ = NO;
|
||||
// Should not call [self unmarkText] here, because it'll send unnecessary
|
||||
|
Reference in New Issue
Block a user