Replace hotkey scopes by focus stack (Part 6 - Remove Hotkey scopes 🫳🎤) (#13127)
# Replace hotkey scopes by focus stack (Part 6 - Remove Hotkey scopes) This PR is the last part of a refactoring aiming to deprecate the hotkey scopes api in favor of the new focus stack api which is more robust. Part 1: https://github.com/twentyhq/twenty/pull/12673 Part 2: https://github.com/twentyhq/twenty/pull/12798 Part 3: https://github.com/twentyhq/twenty/pull/12910 Part 4: https://github.com/twentyhq/twenty/pull/12933 Part 5: https://github.com/twentyhq/twenty/pull/13106 In this part, we completely remove the hotkey scopes.
This commit is contained in:
@@ -34,7 +34,6 @@ type DoubleTextInputProps = {
|
||||
secondValue: string;
|
||||
firstValuePlaceholder: string;
|
||||
secondValuePlaceholder: string;
|
||||
hotkeyScope: string;
|
||||
onEnter: (newDoubleTextValue: FieldDoubleText) => void;
|
||||
onEscape: (newDoubleTextValue: FieldDoubleText) => void;
|
||||
onTab?: (newDoubleTextValue: FieldDoubleText) => void;
|
||||
@@ -53,7 +52,6 @@ export const DoubleTextInput = ({
|
||||
secondValue,
|
||||
firstValuePlaceholder,
|
||||
secondValuePlaceholder,
|
||||
hotkeyScope,
|
||||
onClickOutside,
|
||||
onEnter,
|
||||
onEscape,
|
||||
@@ -97,7 +95,6 @@ export const DoubleTextInput = ({
|
||||
secondValue: secondInternalValue,
|
||||
});
|
||||
},
|
||||
scope: hotkeyScope,
|
||||
focusId: instanceId,
|
||||
dependencies: [onEnter, firstInternalValue, secondInternalValue],
|
||||
});
|
||||
@@ -110,7 +107,6 @@ export const DoubleTextInput = ({
|
||||
secondValue: secondInternalValue,
|
||||
});
|
||||
},
|
||||
scope: hotkeyScope,
|
||||
focusId: instanceId,
|
||||
dependencies: [onEscape, firstInternalValue, secondInternalValue],
|
||||
});
|
||||
@@ -128,7 +124,6 @@ export const DoubleTextInput = ({
|
||||
});
|
||||
}
|
||||
},
|
||||
scope: hotkeyScope,
|
||||
focusId: instanceId,
|
||||
dependencies: [
|
||||
onTab,
|
||||
@@ -151,7 +146,6 @@ export const DoubleTextInput = ({
|
||||
});
|
||||
}
|
||||
},
|
||||
scope: hotkeyScope,
|
||||
focusId: instanceId,
|
||||
dependencies: [
|
||||
onShiftTab,
|
||||
|
||||
Reference in New Issue
Block a user