feat(fe/panel_files): enable hotkeys for deleting and moving
This commit is contained in:
parent
ecb35e2de1
commit
de3476dbad
1 changed files with 2 additions and 0 deletions
|
@ -112,6 +112,8 @@ export class FilesPanel extends React.Component<Props, State, {}> {
|
|||
this.hotkeyHandler = new HotkeyHandler();
|
||||
this.hotkeyHandler.add({ key: "a", ctrl: true }, this.selectAll);
|
||||
this.hotkeyHandler.add({ key: "q", ctrl: true }, this.onClickUpload);
|
||||
this.hotkeyHandler.add({ key: "Delete" }, this.delete);
|
||||
this.hotkeyHandler.add({ key: "v", ctrl: true }, this.moveHere);
|
||||
|
||||
document.addEventListener("keyup", this.hotkeyHandler.handle);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue