You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change the shortcut for Switch label to xxx under the Objects sidebar to a new key combination.
Refresh the page.
The shortcut is resettled to default.
Expected Behavior
After saving this change, the shortcut works and remains active even after refreshing the page. I have tested some shortcuts under General and Annotation page, and they function properly without resetting to the default settings.
Possible Solution
Should the same logic for shortcuts under General be applied here as well?
Context
No response
Environment
Self-hosted CVAT (v2.18.0) with customized permission controls, particularly for data exportation.
The text was updated successfully, but these errors were encountered:
Can be fixed by adding this line sequences: keyMap[key]?.sequences ?? updatedComponentShortcuts[key].sequences,
to label-list.tsx in the below useEffect
useEffect(() => {
const updatedComponentShortcuts = JSON.parse(JSON.stringify(componentShortcuts));
for (const [index, labelID] of Object.entries(keyToLabelMapping)) {
if (labelID) {
const labelName = labels.find((label: any) => label.id === labelID)?.name;
const key = makeKey(+index);
updatedComponentShortcuts[key] = {
...updatedComponentShortcuts[key],
nonActive: false,
name: `Switch label to ${labelName}`,
description: `Changes the label to ${labelName} for the activated
object or for the next drawn object if no objects are activated`,
sequences: keyMap[key]?.sequences ?? updatedComponentShortcuts[key].sequences,
};
}
}
registerComponentShortcuts(updatedComponentShortcuts);
}, [labels]);
Actions before raising this issue
Steps to Reproduce
Switch label to xxx
under theObjects sidebar
to a new key combination.Expected Behavior
After saving this change, the shortcut works and remains active even after refreshing the page. I have tested some shortcuts under
General
andAnnotation page
, and they function properly without resetting to the default settings.Possible Solution
Should the same logic for shortcuts under General be applied here as well?
Context
No response
Environment
The text was updated successfully, but these errors were encountered: