Skip to content

Commit

Permalink
Opening keyboard shortcuts UI result in "destruction" of shortcut set…
Browse files Browse the repository at this point in the history
…tings

Fixes jupyterlab#12056
  • Loading branch information
fcollonval committed Feb 24, 2022
1 parent b27408b commit cfff575
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/settingregistry/src/settingregistry.ts
Expand Up @@ -1162,7 +1162,13 @@ export namespace SettingRegistry {
});

// Return all the shortcuts that should be registered
return user.concat(defaults).filter(shortcut => !shortcut.disabled);
return user
.concat(defaults)
.filter(shortcut => !shortcut.disabled)
// Fix shortcuts comparison in rjsf Form to avoid polluting the user settings
.map(shortcut => {
return { args: {}, ...shortcut };
});
}

/**
Expand Down

0 comments on commit cfff575

Please sign in to comment.