Ctrl and Command keys

This commit is contained in:
James Barnsley
2017-10-31 08:43:29 +13:00
parent d5752e1bac
commit 7f8a9c26dc
6 changed files with 10 additions and 9 deletions

View File

@ -15805,7 +15805,7 @@ var TrackList = function (_React$Component) {
case 65:
// a
if (e.ctrlKey) {
if (e.ctrlKey || e.metaKey) {
e.preventDefault();
@ -15958,7 +15958,7 @@ var TrackList = function (_React$Component) {
value: function handleSelection(e, track_key) {
var selected_tracks = this.props.selected_tracks;
if (e.ctrlKey || this.props.slim_mode || helpers.isTouchDevice()) {
if (e.ctrlKey || e.metaKey || this.props.slim_mode || helpers.isTouchDevice()) {
// Already selected, so unselect it
if (selected_tracks.includes(track_key)) {
@ -55596,6 +55596,7 @@ var SpotifyMiddleware = function () {
// Use 'me' name as my Pusher username
store.dispatch(pusherActions.setUsername(name));
}
_reactGa2.default.set({ userId: action.data.id });
_reactGa2.default.event({ category: 'Spotify', action: 'Authorization verified', label: action.data.id });
store.dispatch({

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -38,7 +38,7 @@
// Release details
// These are automatically injected by build.sh
var build = "1509391801";
var build = "1509392542";
var version = "3.6.1";
// Construct the script tag

View File

@ -59,7 +59,7 @@ class TrackList extends React.Component{
break;
case 65: // a
if (e.ctrlKey){
if ((e.ctrlKey || e.metaKey)){
e.preventDefault();
@ -208,7 +208,7 @@ class TrackList extends React.Component{
handleSelection(e,track_key){
let selected_tracks = this.props.selected_tracks
if (e.ctrlKey || this.props.slim_mode || helpers.isTouchDevice()){
if ((e.ctrlKey || e.metaKey) || this.props.slim_mode || helpers.isTouchDevice()){
// Already selected, so unselect it
if (selected_tracks.includes(track_key)){