+
- {value}
-
+ {value}
+
{hasShift ? (
<>
{filteredShortcut[0]}
diff --git a/src/frontend/src/pages/SettingsPage/pages/ShortcutsPage/EditShortcutButton/index.tsx b/src/frontend/src/pages/SettingsPage/pages/ShortcutsPage/EditShortcutButton/index.tsx
index 3388c5de0..42287457e 100644
--- a/src/frontend/src/pages/SettingsPage/pages/ShortcutsPage/EditShortcutButton/index.tsx
+++ b/src/frontend/src/pages/SettingsPage/pages/ShortcutsPage/EditShortcutButton/index.tsx
@@ -26,8 +26,6 @@ export default function EditShortcutButton({
disable?: boolean;
setSelected: (selected: string[]) => void;
}): JSX.Element {
- const isMac = navigator.userAgent.toUpperCase().includes("MAC");
- console.log(shortcut[0]?.split(" ")[0].toLowerCase());
let shortcutInitialValue =
defaultShortcuts.length > 0
? defaultShortcuts.find(
@@ -82,7 +80,6 @@ export default function EditShortcutButton({
fixCombination[0] = "mod";
}
const shortcutName = shortcut[0].split(" ")[0].toLowerCase();
- console.log(shortcutName);
setUniqueShortcut(shortcutName, fixCombination.join("").toLowerCase());
console.log(newCombination);
setShortcuts(newCombination, unavailable);
diff --git a/src/frontend/src/stores/shortcuts.ts b/src/frontend/src/stores/shortcuts.ts
index 37e8ca3ea..8b60fc50b 100644
--- a/src/frontend/src/stores/shortcuts.ts
+++ b/src/frontend/src/stores/shortcuts.ts
@@ -16,7 +16,7 @@ export const useShortcutsStore = create((set, get) => ({
open: "mod+k",
advanced: "mod+shift+a",
minimize: "mod+shift+q",
- code: "mod+shift+u",
+ code: "space",
copy: "mod+c",
duplicate: "mod+d",
share: "mod+shift+s",
@@ -29,6 +29,7 @@ export const useShortcutsStore = create((set, get) => ({
api: "mod+r",
update: "mod+u",
download: "mod+j",
+ freeze: "mod+f",
updateUniqueShortcut: (name, combination) => {
set({
[name]: combination,
diff --git a/src/frontend/src/types/components/index.ts b/src/frontend/src/types/components/index.ts
index 1d2a13855..b75dd31ba 100644
--- a/src/frontend/src/types/components/index.ts
+++ b/src/frontend/src/types/components/index.ts
@@ -781,14 +781,7 @@ export type toolbarSelectItemProps = {
isMac: boolean;
value: string;
icon: string;
- styleObj?: {
- iconClasses?: string;
- commandClasses?: string;
- shiftClasses?: string;
- ctrlClasses?: string;
- keyClasses?: string;
- valueClasses?: string;
- };
+ style?: string;
dataTestId: string;
ping?: boolean;
shortcut: string;
diff --git a/src/frontend/src/types/store/index.ts b/src/frontend/src/types/store/index.ts
index abe3e64be..842665479 100644
--- a/src/frontend/src/types/store/index.ts
+++ b/src/frontend/src/types/store/index.ts
@@ -39,6 +39,7 @@ export type shortcutsStoreType = {
delete: string;
update: string;
download: string;
+ freeze: string;
shortcuts: Array<{
name: string;
shortcut: string;