diff options
author | nyamatongwe <unknown> | 2011-06-05 10:18:45 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-06-05 10:18:45 +1000 |
commit | 4d97af95b345a9567734893b91413d1050a2c01f (patch) | |
tree | fba344fd86288603edb5a3cbddc60f108e41c3d3 | |
parent | 730b9d5fa973e1b4a7628494615d90a3a95164e0 (diff) | |
download | scintilla-mirror-4d97af95b345a9567734893b91413d1050a2c01f.tar.gz |
Implement SCI_GRABFOCUS.
-rw-r--r-- | cocoa/ScintillaCocoa.mm | 6 |
1 files changed, 3 insertions, 3 deletions
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<sptr_t>(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; |