[vlc-commits] [Git][videolan/vlc][master] 2 commits: macosx: Make collectionview item shift-click behaviour match other file-based views on macOS
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Thu Jan 9 11:12:20 UTC 2025
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
55ca94c5 by Claudio Cambra at 2025-01-09T10:59:53+00:00
macosx: Make collectionview item shift-click behaviour match other file-based views on macOS
Signed-off-by: Claudio Cambra <developer at claudiocambra.com>
- - - - -
f908ef49 by Claudio Cambra at 2025-01-09T10:59:53+00:00
macosx: Also address command-click behaviour on browse view collection view items
Signed-off-by: Claudio Cambra <developer at claudiocambra.com>
- - - - -
1 changed file:
- modules/gui/macosx/library/media-source/VLCMediaSourceCollectionViewItem.m
Changes:
=====================================
modules/gui/macosx/library/media-source/VLCMediaSourceCollectionViewItem.m
=====================================
@@ -210,13 +210,15 @@ NSString *VLCMediaSourceCellIdentifier = @"VLCLibraryCellIdentifier";
[_menuController popupMenuWithEvent:event forView:self.view];
}
--(void)mouseDown:(NSEvent *)event
+- (void)mouseDown:(NSEvent *)event
{
if (event.modifierFlags & NSControlKeyMask) {
[self openContextMenu:event];
+ } else if (event.modifierFlags & (NSShiftKeyMask | NSCommandKeyMask)) {
+ self.selected = !self.selected;
+ } else {
+ [super mouseDown:event];
}
-
- [super mouseDown:event];
}
- (void)rightMouseDown:(NSEvent *)event
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/9d541293536b3a0fe7385946b1b45b2605808807...f908ef4981c93a8b76805ade15246981002affc9
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/9d541293536b3a0fe7385946b1b45b2605808807...f908ef4981c93a8b76805ade15246981002affc9
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list