Fix: conflicts

This commit is contained in:
HFO4 2020-04-29 08:48:30 +08:00
commit 80e0b6e4e0
2 changed files with 6 additions and 1 deletions

View File

@ -16,6 +16,7 @@ import SadIcon from "@material-ui/icons/SentimentVeryDissatisfied";
import classNames from "classnames";
import ImgPreivew from "./ImgPreview";
import pathHelper from "../../utils/page";
import { isMac } from "../../utils"
import { withRouter } from "react-router-dom";
import {
Table,
@ -177,7 +178,7 @@ class ExplorerCompoment extends Component {
super();
this.keyMap = {
DELETE_FILE: "del",
SELECT_ALL: "ctrl+a"
SELECT_ALL: `${isMac() ? 'command' : 'ctrl'}+a`
};
this.handlers = {

View File

@ -188,4 +188,8 @@ export function getNumber(base,conditions){
}
})
return base
}
export const isMac = () => {
return "MACINTEL" === navigator.platform.toUpperCase()
}