Web: Files: removed actions hotkeys

This commit is contained in:
Nikita Gopienko 2022-03-11 11:22:52 +03:00
parent b6c810daa2
commit c9871f4b1b
2 changed files with 16 additions and 16 deletions

View File

@ -181,21 +181,21 @@ const withHotkeys = (Component) => {
[confirmDelete]
);
//TODO: Undo the last action
useHotkeys(
"Ctrl+z, command+z",
() => alert("Undo the last action"),
hotkeysFilter,
[]
);
// //TODO: Undo the last action
// useHotkeys(
// "Ctrl+z, command+z",
// () => alert("Undo the last action"),
// hotkeysFilter,
// []
// );
//TODO: Redo the last undone action
useHotkeys(
"Ctrl+Shift+z, command+Shift+z",
() => alert("Redo the last undone action"),
hotkeysFilter,
[]
);
// //TODO: Redo the last undone action
// useHotkeys(
// "Ctrl+Shift+z, command+Shift+z",
// () => alert("Redo the last undone action"),
// hotkeysFilter,
// []
// );
//Open hotkeys panel
useHotkeys(

View File

@ -17,7 +17,7 @@ const ActionsBlock = ({ t, textStyles, keyTextStyles, CtrlKey }) => {
<Text {...keyTextStyles}># {t("HotkeysOr")} Delete</Text>
</>
</Row>
<Row className="hotkeys_row">
{/* <Row className="hotkeys_row">
<>
<Text {...textStyles}>{t("HotkeysUndoLastAction")}</Text>
<Text {...keyTextStyles}>{CtrlKey}+z</Text>
@ -28,7 +28,7 @@ const ActionsBlock = ({ t, textStyles, keyTextStyles, CtrlKey }) => {
<Text {...textStyles}>{t("HotkeysRedoLastUndoneAction")}</Text>
<Text {...keyTextStyles}>{CtrlKey}+Shift+z</Text>
</>
</Row>
</Row> */}
</>
);
};