Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
Deselect input text when autocomplete dropdown opens for better selec…
Browse files Browse the repository at this point in the history
…t functionality (mac)
  • Loading branch information
IndrekV committed Jul 3, 2018
1 parent f12f35c commit 15c36c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ui/osx/TogglDesktop/test2/AutoCompleteInput.m
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ - (void)showAutoComplete:(BOOL)show
[NSLayoutConstraint activateConstraints:[NSArray arrayWithObjects:self.leftConstraint, self.rightConstraint, self.heightConstraint, self.topConstraint, nil]];
self.constraintsActive = YES;
}
[[self currentEditor] setSelectedRange:NSMakeRange(0, 0)];
[[self currentEditor] moveToEndOfLine:nil];
}
else
{
Expand Down

0 comments on commit 15c36c8

Please sign in to comment.