use tab only

This commit is contained in:
Ryan Di 2025-03-24 12:09:42 +11:00
parent aa9139ad78
commit 8af03454cb
3 changed files with 3 additions and 3 deletions

View file

@ -4119,7 +4119,7 @@ class App extends React.Component<AppProps, AppState> {
if (event.key === KEYS.ESCAPE) {
editorJotaiStore.set(shapeSwitchAtom, null);
} else if (event.key === KEYS.SLASH || event.key === KEYS.TAB) {
} else if (event.key === KEYS.TAB) {
event.preventDefault();
if (editorJotaiStore.get(shapeSwitchAtom)?.type === "panel") {

View file

@ -177,7 +177,7 @@ const Hint = ({
className={clsx("ShapeSwitch__Hint", "animation")}
>
<div className="key">&#47;</div>
<div className="text">{t("labels.slash")}</div>
<div className="text">{t("labels.tab")}</div>
</div>
);
};

View file

@ -166,7 +166,7 @@
"copyElementLink": "Copy link to object",
"linkToElement": "Link to object",
"wrapSelectionInFrame": "Wrap selection in frame",
"slash": "Slash"
"tab": "Tab"
},
"elementLink": {
"title": "Link to object",