mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: Ungroup short cut key (#5779)
* fix: Ungroup short cut key * Add specs
This commit is contained in:
parent
79bd3b8cda
commit
78e254fb30
3 changed files with 648 additions and 1 deletions
|
@ -189,7 +189,9 @@ export const actionUngroup = register({
|
|||
};
|
||||
},
|
||||
keyTest: (event) =>
|
||||
event.shiftKey && event[KEYS.CTRL_OR_CMD] && event.key === KEYS.G,
|
||||
event.shiftKey &&
|
||||
event[KEYS.CTRL_OR_CMD] &&
|
||||
event.key === KEYS.G.toUpperCase(),
|
||||
contextItemLabel: "labels.ungroup",
|
||||
contextItemPredicate: (elements, appState) =>
|
||||
getSelectedGroupIds(appState).length > 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue