diff options
| author | Neil <nyamatongwe@gmail.com> | 2017-04-22 20:24:24 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2017-04-22 20:24:24 +1000 |
| commit | 1eeadce64ec9d786c1da10e98f188a3221b7373b (patch) | |
| tree | 660f0b845a8c0b745cc1f021cc4291bb14c30f44 /cocoa/ScintillaCocoa.mm | |
| parent | ce8991b3f3b156ada52871052cc856201e1474de (diff) | |
| download | scintilla-mirror-1eeadce64ec9d786c1da10e98f188a3221b7373b.tar.gz | |
Restrict cursor changing to visible bounds so the text area cursor doesn't show
over other views above and below ScintillaView.
Diffstat (limited to 'cocoa/ScintillaCocoa.mm')
| -rw-r--r-- | cocoa/ScintillaCocoa.mm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index 354f22a98..9b5a3b0b6 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -1776,6 +1776,13 @@ NSRect ScintillaCocoa::FrameForRange(NSRange rangeCharacters) { //-------------------------------------------------------------------------------------------------- +// Returns a rectangle that frames the range for use by the VoiceOver cursor. +NSRect ScintillaCocoa::GetBounds() const { + return PRectangleToNSRect(GetClientRectangle()); +} + +//-------------------------------------------------------------------------------------------------- + // Translates a UTF8 string into the document encoding. // Return the length of the result in bytes. int ScintillaCocoa::EncodedFromUTF8(char *utf8, char *encoded) const |
