Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authoring-react keybindings #4196

Merged
Prev Previous commit
Next Next commit
Naming Impovement
  • Loading branch information
dzonidoo committed Feb 7, 2023
commit 0587e92fdafa0c6858e655766535a549495482de
6 changes: 2 additions & 4 deletions scripts/apps/authoring-react/authoring-react.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ export class AuthoringReact<T extends IBaseRestApiResponse> extends React.PureCo
return preview;
})();

const ObjectOfKeybindings = {
const allKeyBindings: IKeyBindings = {
...printPreviewAction.keybindings,
...getKeyBindingsFromActions(authoringOptions.actions),
...keyBindingsFromAuthoringActions,
Expand All @@ -1229,9 +1229,7 @@ export class AuthoringReact<T extends IBaseRestApiResponse> extends React.PureCo
)
}

<WithKeyBindings
keyBindings={ObjectOfKeybindings}
>
<WithKeyBindings keyBindings={allKeyBindings}>
<WithInteractiveArticleActionsPanel location="authoring">
{(panelState, panelActions) => {
return (
Expand Down