diff options
| author | Neil <nyamatongwe@gmail.com> | 2014-09-12 11:22:39 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2014-09-12 11:22:39 +1000 |
| commit | 044efe69724c92a538b9f6e6252ae5782f860153 (patch) | |
| tree | 23073f0c77ce2b6b9c4d4c67355548a101545891 /cocoa | |
| parent | 672a5e079386dbf0d648aac20790fecd17f16a61 (diff) | |
| download | scintilla-mirror-044efe69724c92a538b9f6e6252ae5782f860153.tar.gz | |
Allow choice between windowed and inline IME.
Diffstat (limited to 'cocoa')
| -rw-r--r-- | cocoa/ScintillaCocoa.mm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index f8c53932c..5f5d68b73 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -395,6 +395,7 @@ ScintillaCocoa::ScintillaCocoa(SCIContentView* view, SCIMarginView* viewMargin) idleTimer = NULL; observer = NULL; layerFindIndicator = NULL; + imeInteraction = imeInline; for (TickReason tr=tickCaret; tr<=tickPlatform; tr = static_cast<TickReason>(tr+1)) { timers[tr] = nil; @@ -826,6 +827,10 @@ sptr_t ScintillaCocoa::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lPar case SCI_GETDIRECTPOINTER: return reinterpret_cast<sptr_t>(this); + case SCI_SETIMEINTERACTION: + // Only inline IME supported on Cocoa + break; + case SCI_GRABFOCUS: [[ContentView() window] makeFirstResponder:ContentView()]; break; |
