fix: hotkeys storage between studies and truncated patient names (#2516)

* fix: PatientName truncation in the worklist

* fix: hotkeys preferences
This commit is contained in:
Alireza authored and GitHub committed 2021-08-19 08:05:33 -04:00
1 parent eff70ae22c
commit ca900f80e1
5 files changed
+53 -34

No files matched your search

+10 -1
View File
@@ -181,7 +181,16 @@ export default function ModeRoute({
}
hotkeysManager.setDefaultHotKeys(hotkeys);
hotkeysManager.setHotkeys(hotkeys);
const userPreferredHotkeys = JSON.parse(
localStorage.getItem('hotkey-definitions')
);
if (userPreferredHotkeys?.length) {
hotkeysManager.setHotkeys(userPreferredHotkeys);
} else {
hotkeysManager.setHotkeys(hotkeys);
}
return () => {
hotkeysManager.destroy();