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

David Fuhrmann git at videolan.org
Sat Apr 21 12:35:15 CEST 2018


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Apr 21 12:32:30 2018 +0200| [d2f79f662d54c2cfda3f54dd919c22a5d236436d] | 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

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

 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 5b6ef34d61..ebed37b6f5 100644
--- a/modules/gui/macosx/VLCOpenWindowController.m
+++ b/modules/gui/macosx/VLCOpenWindowController.m
@@ -527,9 +527,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];
 }
 
@@ -562,6 +563,7 @@ static NSString *kCaptureTabViewId  = @"capture";
 {
     [self openNetInfoChanged: nil];
     [self openTarget: kNetworkTabViewId];
+    [_netHTTPURLTextField selectText:nil];
 }
 
 - (void)openCapture



More information about the vlc-commits mailing list