mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
change selection/line/draw shortcut defaults (#1953)
This commit is contained in:
parent
c5d37a07c8
commit
dc1f6c4d4c
4 changed files with 28 additions and 22 deletions
|
@ -104,9 +104,11 @@ export const ShapesSwitcher = ({
|
|||
<>
|
||||
{SHAPES.map(({ value, icon, key }, index) => {
|
||||
const label = t(`toolBar.${value}`);
|
||||
const shortcut = `${capitalizeString(key)} ${t("shortcutsDialog.or")} ${
|
||||
index + 1
|
||||
}`;
|
||||
const letter = typeof key === "string" ? key : key[0];
|
||||
const letterShortcut = /[a-z]/.test(letter) ? letter : `Shift+${letter}`;
|
||||
const shortcut = `${capitalizeString(letterShortcut)} ${t(
|
||||
"shortcutsDialog.or",
|
||||
)} ${index + 1}`;
|
||||
return (
|
||||
<ToolButton
|
||||
className="Shape"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue