mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fixes in Shortcuts dialog and minor refactor (#1297)
This commit is contained in:
parent
e4c154f43e
commit
0c3d34261e
11 changed files with 96 additions and 82 deletions
|
@ -90,7 +90,7 @@ export const actionZoomIn = register({
|
|||
<ToolButton
|
||||
type="button"
|
||||
icon={zoomIn}
|
||||
title={`${t("buttons.zoomIn")} ${getShortcutKey("CtrlOrCmd++")}`}
|
||||
title={`${t("buttons.zoomIn")} — ${getShortcutKey("CtrlOrCmd++")}`}
|
||||
aria-label={t("buttons.zoomIn")}
|
||||
onClick={() => {
|
||||
updateData(null);
|
||||
|
@ -117,7 +117,7 @@ export const actionZoomOut = register({
|
|||
<ToolButton
|
||||
type="button"
|
||||
icon={zoomOut}
|
||||
title={`${t("buttons.zoomOut")} ${getShortcutKey("CtrlOrCmd+-")}`}
|
||||
title={`${t("buttons.zoomOut")} — ${getShortcutKey("CtrlOrCmd+-")}`}
|
||||
aria-label={t("buttons.zoomOut")}
|
||||
onClick={() => {
|
||||
updateData(null);
|
||||
|
|
|
@ -38,7 +38,7 @@ export const actionDuplicateSelection = register({
|
|||
<ToolButton
|
||||
type="button"
|
||||
icon={clone}
|
||||
title={`${t("labels.duplicateSelection")} ${getShortcutKey(
|
||||
title={`${t("labels.duplicateSelection")} — ${getShortcutKey(
|
||||
"CtrlOrCmd+D",
|
||||
)}`}
|
||||
aria-label={t("labels.duplicateSelection")}
|
||||
|
|
|
@ -91,7 +91,7 @@ export const actionSendBackward = register({
|
|||
type="button"
|
||||
className="zIndexButton"
|
||||
onClick={() => updateData(null)}
|
||||
title={`${t("labels.sendBackward")} ${getShortcutKey("CtrlOrCmd+[")}`}
|
||||
title={`${t("labels.sendBackward")} — ${getShortcutKey("CtrlOrCmd+[")}`}
|
||||
>
|
||||
{sendBackward}
|
||||
</button>
|
||||
|
@ -116,7 +116,7 @@ export const actionBringForward = register({
|
|||
type="button"
|
||||
className="zIndexButton"
|
||||
onClick={() => updateData(null)}
|
||||
title={`${t("labels.bringForward")} ${getShortcutKey("CtrlOrCmd+]")}`}
|
||||
title={`${t("labels.bringForward")} — ${getShortcutKey("CtrlOrCmd+]")}`}
|
||||
>
|
||||
{bringForward}
|
||||
</button>
|
||||
|
@ -145,7 +145,7 @@ export const actionSendToBack = register({
|
|||
type="button"
|
||||
className="zIndexButton"
|
||||
onClick={() => updateData(null)}
|
||||
title={`${t("labels.sendToBack")} ${
|
||||
title={`${t("labels.sendToBack")} — ${
|
||||
isDarwin
|
||||
? getShortcutKey("CtrlOrCmd+Alt+[")
|
||||
: getShortcutKey("CtrlOrCmd+Shift+[")
|
||||
|
@ -178,7 +178,7 @@ export const actionBringToFront = register({
|
|||
type="button"
|
||||
className="zIndexButton"
|
||||
onClick={(event) => updateData(null)}
|
||||
title={`${t("labels.bringToFront")} ${
|
||||
title={`${t("labels.bringToFront")} — ${
|
||||
isDarwin
|
||||
? getShortcutKey("CtrlOrCmd+Alt+]")
|
||||
: getShortcutKey("CtrlOrCmd+Shift+]")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue