On OSX this works well for the shift key but does work for the ctrl key. This is because on some browsers (chrome for example), ctrl+click sends a contextmenu event not a mousedown event.
I suggest adding support for detecting the meta key as an alternative to the ctrl key so that osx users can select multiple files using cmd + click instead of ctrl + click.
Summary:
ctrl + click does not work to select multiple files on OSX ctrl+click opens the context menu instead
detecting whether the meta key is pressed as well will improve usability for OSX users
Version 1.7.0 introduced the ability to select multiple files/folders by clicking multiple rows while simultaneously holding down the ctrl or shift keys (https://github.com/uptick/react-keyed-file-browser/pull/86/).
On OSX this works well for the shift key but does work for the ctrl key. This is because on some browsers (chrome for example), ctrl+click sends a
contextmenu
event not amousedown
event.I suggest adding support for detecting the meta key as an alternative to the ctrl key so that osx users can select multiple files using cmd + click instead of ctrl + click.
Summary:
Possible fix: