{
@@ -19,8 +21,8 @@ export default function ToolbarSelectItem({
const filteredShortcut = fixedShortcut.filter(
(key) => !key.toLowerCase().includes("shift"),
);
- let shortcutWPlus = "";
- if (!hasShift) shortcutWPlus = filteredShortcut.join("+");
+ let shortcutWPlus: string[] = [];
+ if (!hasShift) shortcutWPlus = filteredShortcut.join("+").split(" ");
return (
@@ -34,22 +36,12 @@ export default function ToolbarSelectItem({
{value}
- {hasShift ? (
- <>
- {filteredShortcut[0]}
-
- {filteredShortcut.map((key, idx) => {
- if (idx > 0) {
- return {key.toUpperCase()} ;
- }
- })}
- >
- ) : (
- shortcutWPlus
- )}
+
);