fix: Ungroup short cut key (#5779)

* fix: Ungroup short cut key

* Add specs
This commit is contained in:
Aakansha Doshi 2022-10-21 14:04:56 +05:30 committed by GitHub
parent 79bd3b8cda
commit 78e254fb30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 648 additions and 1 deletions

View file

@ -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,