Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
70052d03 by Serhii Bykov at 2026-05-30T11:17:11+02:00
macosx: prevent text selection in sidebar header labels

- - - - -


1 changed file:

- modules/gui/macosx/extensions/NSTextField+VLCAdditions.m


Changes:

=====================================
modules/gui/macosx/extensions/NSTextField+VLCAdditions.m
=====================================
@@ -29,12 +29,14 @@
     if (@available(macOS 10.12, *)) {
         NSTextField * const textField = [NSTextField 
wrappingLabelWithString:stringValue];
         textField.translatesAutoresizingMaskIntoConstraints = NO;
+        textField.selectable = NO;
         return textField;
     }
     NSTextField * const textField = [[NSTextField alloc] 
initWithFrame:NSZeroRect];
     textField.translatesAutoresizingMaskIntoConstraints = NO;
     textField.stringValue = stringValue;
     textField.editable = NO;
+    textField.selectable = NO;
     textField.bordered = NO;
     textField.drawsBackground = NO;
     textField.lineBreakMode = NSLineBreakByWordWrapping;



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/70052d03dea8fbbae599c4f74e3648e52e91ea1d

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/70052d03dea8fbbae599c4f74e3648e52e91ea1d
You're receiving this email because of your account on code.videolan.org. 
Manage all notifications: https://code.videolan.org/-/profile/notifications | 
Help: https://code.videolan.org/help


_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to