mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-20 13:39:22 +00:00
Place the cursor after the last inserted token when editing.
This commit is contained in:
1 parent
8a7b6054ef
commit
0c2301766a
1 file changed
+2
-1
@@ -202,8 +202,9 @@ var CPThemeStateAutoCompleting = @"CPThemeStateAutoCompleting",
|
||||
[objectValue removeObjectAtIndex:_selectedRange.location];
|
||||
|
||||
[objectValue insertObject:token atIndex:_selectedRange.location];
|
||||
var location = _selectedRange.location;
|
||||
[self setObjectValue:objectValue];
|
||||
_shouldScrollTo = CPScrollDestinationNone;
|
||||
_selectedRange = CPMakeRange(location + 1, 0);
|
||||
|
||||
[self _inputElement].value = @"";
|
||||
[self setNeedsLayout];
|
||||
|
||||
Reference in new issue
Block a user