diff options
author | nyamatongwe <devnull@localhost> | 2011-06-05 10:18:45 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-06-05 10:18:45 +1000 |
commit | 7124cd54e16e94df1a179d24121bfd8be84d4f4d (patch) | |
tree | f7aaf63902c92218aca7eb6d95d15980d2eff457 | |
parent | 6d32a7a7e0717dae69b2939082d14d97360b17e9 (diff) | |
download | scintilla-mirror-7124cd54e16e94df1a179d24121bfd8be84d4f4d.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; |