From 15c36c8d169d8810a3d6c99fc13fa1c470dc52d4 Mon Sep 17 00:00:00 2001 From: IndrekV Date: Tue, 3 Jul 2018 12:57:51 +0300 Subject: [PATCH] Deselect input text when autocomplete dropdown opens for better select functionality (mac) --- src/ui/osx/TogglDesktop/test2/AutoCompleteInput.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/osx/TogglDesktop/test2/AutoCompleteInput.m b/src/ui/osx/TogglDesktop/test2/AutoCompleteInput.m index bd6c882202..f2f6e160a8 100644 --- a/src/ui/osx/TogglDesktop/test2/AutoCompleteInput.m +++ b/src/ui/osx/TogglDesktop/test2/AutoCompleteInput.m @@ -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 {