fix: hotkeys storage between studies and truncated patient names (#2516)
* fix: PatientName truncation in the worklist * fix: hotkeys preferences
This commit is contained in:
1 parent
eff70ae22c
commit
ca900f80e1
5 files changed
+53
-34
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user