aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaCocoa.mm
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-04-22 20:24:24 +1000
committerNeil <nyamatongwe@gmail.com>2017-04-22 20:24:24 +1000
commit1eeadce64ec9d786c1da10e98f188a3221b7373b (patch)
tree660f0b845a8c0b745cc1f021cc4291bb14c30f44 /cocoa/ScintillaCocoa.mm
parentce8991b3f3b156ada52871052cc856201e1474de (diff)
downloadscintilla-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.mm7
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