diff options
Diffstat (limited to 'cocoa/ScintillaCocoa.mm')
| -rw-r--r-- | cocoa/ScintillaCocoa.mm | 25 | 
1 files changed, 12 insertions, 13 deletions
| diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index f97520a81..557861d6b 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -1649,19 +1649,18 @@ void ScintillaCocoa::HandleCommand(NSInteger command)  //-------------------------------------------------------------------------------------------------- -//OSStatus ScintillaCocoa::ActiveStateChanged() -//{ -//  // If the window is being deactivated, lose the focus and turn off the ticking -//  if ( ! this->IsActive() ) { -//    DropCaret(); -//    //SetFocusState( false ); -//    SetTicking( false ); -//  } else { -//    ShowCaretAtCurrentPosition(); -//  } -//  return noErr; -//} -// +void ScintillaCocoa::ActiveStateChanged(bool isActive) +{ +  // If the window is being deactivated, lose the focus and turn off the ticking +  if (!isActive) { +    DropCaret(); +    //SetFocusState( false ); +    SetTicking( false ); +  } else { +    ShowCaretAtCurrentPosition(); +  } +} +  //-------------------------------------------------------------------------------------------------- | 
