mirror of
https://github.com/cloudreve/frontend.git
synced 2026-01-01 02:42:48 +00:00
Fix: conflicts
This commit is contained in:
commit
80e0b6e4e0
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -188,4 +188,8 @@ export function getNumber(base,conditions){
|
|||
}
|
||||
})
|
||||
return base
|
||||
}
|
||||
|
||||
export const isMac = () => {
|
||||
return "MACINTEL" === navigator.platform.toUpperCase()
|
||||
}
|
||||
Loading…
Reference in New Issue