From 9722cf718c6fd9348b53436ed76e877d19031a08 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Mon, 8 Jun 2015 20:30:24 +0200 Subject: [PATCH] mouse down fix --- AppKit/CPTextView/CPTextView.j | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index b8ac6aa73..ab45ecdb1 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -735,6 +735,8 @@ var kDelegateRespondsTo_textShouldBeginEditing - (void)mouseDown:(CPEvent)event { + [_CPNativeInputManager cancelCurrentInputSessionIfNeeded]; + var fraction = [], point = [self convertPoint:[event locationInWindow] fromView:nil], granularities = [-1, CPSelectByCharacter, CPSelectByWord, CPSelectByParagraph];