+ $enabled = $request->get('enabled') === 'true';
+ $providedShortcuts = $request->get('shortcut', []);
+ $shortcuts = new UserShortcutMap($providedShortcuts);
+
+ setting()->putForCurrentUser('ui-shortcuts', $shortcuts->toJson());
+ setting()->putForCurrentUser('ui-shortcuts-enabled', $enabled);
+
+ $this->showSuccessNotification(trans('preferences.shortcuts_update_success'));
+
+ return redirect('/preferences/shortcuts');