From 7124cd54e16e94df1a179d24121bfd8be84d4f4d Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 5 Jun 2011 10:18:45 +1000 Subject: Implement SCI_GRABFOCUS. --- cocoa/ScintillaCocoa.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cocoa') diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index 557861d6b..b1ed92727 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -518,7 +518,9 @@ sptr_t ScintillaCocoa::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lPar return reinterpret_cast(this); case SCI_GRABFOCUS: - // TODO: implement it + [[ContentView() window] makeFirstResponder:ContentView()]; + break; + break; case WM_UNICHAR: @@ -776,8 +778,6 @@ void ScintillaCocoa::CreateCallTipWindow(PRectangle rc) { } } - - void ScintillaCocoa::AddToPopUp(const char *label, int cmd, bool enabled) { NSMenuItem* item; -- cgit v1.2.3