8172 update the right drawer action menu to open with command o (#8375)

Closes #8172 

- Added a shortcut property to the button component
- Displays the actions inside a dropdown
- The dropdown is toggled either by clicking on the button or with the
`command + O` shortcut



https://github.com/user-attachments/assets/4c4c88fa-85dc-404e-bb42-f2b0d57c8960
This commit is contained in:
Raphaël Bosi
2024-11-08 17:08:09 +01:00
committed by GitHub
parent 0bf2cb69da
commit e8bf81de5b
11 changed files with 177 additions and 84 deletions

View File

@ -350,6 +350,10 @@ export const RichTextEditor = ({
editor.focus();
},
RightDrawerHotkeyScope.RightDrawer,
[],
{
preventDefault: false,
},
);
const handleBlockEditorFocus = () => {