[vlc-commits] macosx: Select network text field once network open panel is shown

David Fuhrmann git at videolan.org
Sun Apr 29 22:40:51 CEST 2018


vlc/vlc-3.0 | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Apr 21 12:32:30 2018 +0200| [70ef5c065d6ff55ffaf7dc35cc247836fabe8d8d] | committer: David Fuhrmann

macosx: Select network text field once network open panel is shown

Select all to directly modify or copy / paste a new URL into
the field.

closes #19863

(cherry picked from commit d2f79f662d54c2cfda3f54dd919c22a5d236436d)
Signed-off-by: David Fuhrmann <dfuhrmann at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=70ef5c065d6ff55ffaf7dc35cc247836fabe8d8d
---

 modules/gui/macosx/VLCOpenWindowController.m | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/VLCOpenWindowController.m b/modules/gui/macosx/VLCOpenWindowController.m
index 0a47b06296..9a50e21257 100644
--- a/modules/gui/macosx/VLCOpenWindowController.m
+++ b/modules/gui/macosx/VLCOpenWindowController.m
@@ -521,9 +521,10 @@ static NSString *kCaptureTabViewId  = @"capture";
         [self openFilePathChanged: nil];
     else if ([identifier isEqualToString: kDiscTabViewId])
         [self scanOpticalMedia: nil];
-    else if ([identifier isEqualToString: kNetworkTabViewId])
+    else if ([identifier isEqualToString: kNetworkTabViewId]) {
         [self openNetInfoChanged: nil];
-    else if ([identifier isEqualToString: kCaptureTabViewId])
+        [_netHTTPURLTextField selectText:nil];
+    } else if ([identifier isEqualToString: kCaptureTabViewId])
         [self openCaptureModeChanged: nil];
 }
 
@@ -556,6 +557,7 @@ static NSString *kCaptureTabViewId  = @"capture";
 {
     [self openNetInfoChanged: nil];
     [self openTarget: kNetworkTabViewId];
+    [_netHTTPURLTextField selectText:nil];
 }
 
 - (void)openCapture



More information about the vlc-commits mailing list