From 33fb2daabfd8b403d4b9aa35a9a765c5dcbc4302 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Sun, 5 Jul 2015 14:19:11 +0200 Subject: [PATCH] fix shift selection --- AppKit/CPTextView/CPTextView.j | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index b609e8509..8c29b4726 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -825,10 +825,10 @@ var kDelegateRespondsTo_textShouldBeginEditing if ([event modifierFlags] & CPShiftKeyMask) setRange = _MakeRangeFromAbs(_startTrackingLocation < _MidRange(_selectionRange) ? CPMaxRange(_selectionRange) : _selectionRange.location, _startTrackingLocation); + else + _scrollingTimer = [CPTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(_supportScrolling:) userInfo:nil repeats:YES]; // fixme: only start if we are in the scrolling areas [self setSelectedRange:setRange affinity:0 stillSelecting:YES]; - - _scrollingTimer = [CPTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(_supportScrolling:) userInfo:nil repeats:YES]; // fixme: only start if we are in the scrolling areas } - (void)_supportScrolling:(CPTimer)aTimer