add shortcut to context menu
This commit is contained in:
parent
c742b4847f
commit
1a0755cd56
@ -35,6 +35,7 @@ import {
|
|||||||
actionToggleElementLock,
|
actionToggleElementLock,
|
||||||
actionToggleLinearEditor,
|
actionToggleLinearEditor,
|
||||||
actionToggleObjectsSnapMode,
|
actionToggleObjectsSnapMode,
|
||||||
|
actionToggleCropEditor,
|
||||||
} from "../actions";
|
} from "../actions";
|
||||||
import { createRedoAction, createUndoAction } from "../actions/actionHistory";
|
import { createRedoAction, createUndoAction } from "../actions/actionHistory";
|
||||||
import { ActionManager } from "../actions/manager";
|
import { ActionManager } from "../actions/manager";
|
||||||
@ -10389,6 +10390,8 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
actionSelectAllElementsInFrame,
|
actionSelectAllElementsInFrame,
|
||||||
actionRemoveAllElementsFromFrame,
|
actionRemoveAllElementsFromFrame,
|
||||||
CONTEXT_MENU_SEPARATOR,
|
CONTEXT_MENU_SEPARATOR,
|
||||||
|
actionToggleCropEditor,
|
||||||
|
CONTEXT_MENU_SEPARATOR,
|
||||||
...options,
|
...options,
|
||||||
CONTEXT_MENU_SEPARATOR,
|
CONTEXT_MENU_SEPARATOR,
|
||||||
actionCopyStyles,
|
actionCopyStyles,
|
||||||
|
@ -116,6 +116,51 @@ exports[`contextMenu element > right-clicking on a group should select whole gro
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"separator",
|
"separator",
|
||||||
|
{
|
||||||
|
"PanelComponent": [Function],
|
||||||
|
"icon": <svg
|
||||||
|
aria-hidden="true"
|
||||||
|
className=""
|
||||||
|
fill="none"
|
||||||
|
focusable="false"
|
||||||
|
role="img"
|
||||||
|
stroke="currentColor"
|
||||||
|
strokeLinecap="round"
|
||||||
|
strokeLinejoin="round"
|
||||||
|
strokeWidth={2}
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
>
|
||||||
|
<g
|
||||||
|
strokeWidth="1.25"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M0 0h24v24H0z"
|
||||||
|
fill="none"
|
||||||
|
stroke="none"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M8 5v10a1 1 0 0 0 1 1h10"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M5 8h10a1 1 0 0 1 1 1v10"
|
||||||
|
/>
|
||||||
|
</g>
|
||||||
|
</svg>,
|
||||||
|
"keywords": [
|
||||||
|
"image",
|
||||||
|
"crop",
|
||||||
|
],
|
||||||
|
"label": "helpDialog.cropStart",
|
||||||
|
"name": "cropEditor",
|
||||||
|
"paletteName": "Finish image cropping",
|
||||||
|
"perform": [Function],
|
||||||
|
"predicate": [Function],
|
||||||
|
"trackEvent": {
|
||||||
|
"category": "menu",
|
||||||
|
},
|
||||||
|
"viewMode": true,
|
||||||
|
},
|
||||||
|
"separator",
|
||||||
{
|
{
|
||||||
"icon": <svg
|
"icon": <svg
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
@ -4657,6 +4702,51 @@ exports[`contextMenu element > shows 'Group selection' in context menu for multi
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"separator",
|
"separator",
|
||||||
|
{
|
||||||
|
"PanelComponent": [Function],
|
||||||
|
"icon": <svg
|
||||||
|
aria-hidden="true"
|
||||||
|
className=""
|
||||||
|
fill="none"
|
||||||
|
focusable="false"
|
||||||
|
role="img"
|
||||||
|
stroke="currentColor"
|
||||||
|
strokeLinecap="round"
|
||||||
|
strokeLinejoin="round"
|
||||||
|
strokeWidth={2}
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
>
|
||||||
|
<g
|
||||||
|
strokeWidth="1.25"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M0 0h24v24H0z"
|
||||||
|
fill="none"
|
||||||
|
stroke="none"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M8 5v10a1 1 0 0 0 1 1h10"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M5 8h10a1 1 0 0 1 1 1v10"
|
||||||
|
/>
|
||||||
|
</g>
|
||||||
|
</svg>,
|
||||||
|
"keywords": [
|
||||||
|
"image",
|
||||||
|
"crop",
|
||||||
|
],
|
||||||
|
"label": "helpDialog.cropStart",
|
||||||
|
"name": "cropEditor",
|
||||||
|
"paletteName": "Finish image cropping",
|
||||||
|
"perform": [Function],
|
||||||
|
"predicate": [Function],
|
||||||
|
"trackEvent": {
|
||||||
|
"category": "menu",
|
||||||
|
},
|
||||||
|
"viewMode": true,
|
||||||
|
},
|
||||||
|
"separator",
|
||||||
{
|
{
|
||||||
"icon": <svg
|
"icon": <svg
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
@ -5786,6 +5876,51 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"separator",
|
"separator",
|
||||||
|
{
|
||||||
|
"PanelComponent": [Function],
|
||||||
|
"icon": <svg
|
||||||
|
aria-hidden="true"
|
||||||
|
className=""
|
||||||
|
fill="none"
|
||||||
|
focusable="false"
|
||||||
|
role="img"
|
||||||
|
stroke="currentColor"
|
||||||
|
strokeLinecap="round"
|
||||||
|
strokeLinejoin="round"
|
||||||
|
strokeWidth={2}
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
>
|
||||||
|
<g
|
||||||
|
strokeWidth="1.25"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M0 0h24v24H0z"
|
||||||
|
fill="none"
|
||||||
|
stroke="none"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M8 5v10a1 1 0 0 0 1 1h10"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M5 8h10a1 1 0 0 1 1 1v10"
|
||||||
|
/>
|
||||||
|
</g>
|
||||||
|
</svg>,
|
||||||
|
"keywords": [
|
||||||
|
"image",
|
||||||
|
"crop",
|
||||||
|
],
|
||||||
|
"label": "helpDialog.cropStart",
|
||||||
|
"name": "cropEditor",
|
||||||
|
"paletteName": "Finish image cropping",
|
||||||
|
"perform": [Function],
|
||||||
|
"predicate": [Function],
|
||||||
|
"trackEvent": {
|
||||||
|
"category": "menu",
|
||||||
|
},
|
||||||
|
"viewMode": true,
|
||||||
|
},
|
||||||
|
"separator",
|
||||||
{
|
{
|
||||||
"icon": <svg
|
"icon": <svg
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
@ -7637,6 +7772,51 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"separator",
|
"separator",
|
||||||
|
{
|
||||||
|
"PanelComponent": [Function],
|
||||||
|
"icon": <svg
|
||||||
|
aria-hidden="true"
|
||||||
|
className=""
|
||||||
|
fill="none"
|
||||||
|
focusable="false"
|
||||||
|
role="img"
|
||||||
|
stroke="currentColor"
|
||||||
|
strokeLinecap="round"
|
||||||
|
strokeLinejoin="round"
|
||||||
|
strokeWidth={2}
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
>
|
||||||
|
<g
|
||||||
|
strokeWidth="1.25"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M0 0h24v24H0z"
|
||||||
|
fill="none"
|
||||||
|
stroke="none"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M8 5v10a1 1 0 0 0 1 1h10"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M5 8h10a1 1 0 0 1 1 1v10"
|
||||||
|
/>
|
||||||
|
</g>
|
||||||
|
</svg>,
|
||||||
|
"keywords": [
|
||||||
|
"image",
|
||||||
|
"crop",
|
||||||
|
],
|
||||||
|
"label": "helpDialog.cropStart",
|
||||||
|
"name": "cropEditor",
|
||||||
|
"paletteName": "Finish image cropping",
|
||||||
|
"perform": [Function],
|
||||||
|
"predicate": [Function],
|
||||||
|
"trackEvent": {
|
||||||
|
"category": "menu",
|
||||||
|
},
|
||||||
|
"viewMode": true,
|
||||||
|
},
|
||||||
|
"separator",
|
||||||
{
|
{
|
||||||
"icon": <svg
|
"icon": <svg
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
@ -8533,6 +8713,51 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"separator",
|
"separator",
|
||||||
|
{
|
||||||
|
"PanelComponent": [Function],
|
||||||
|
"icon": <svg
|
||||||
|
aria-hidden="true"
|
||||||
|
className=""
|
||||||
|
fill="none"
|
||||||
|
focusable="false"
|
||||||
|
role="img"
|
||||||
|
stroke="currentColor"
|
||||||
|
strokeLinecap="round"
|
||||||
|
strokeLinejoin="round"
|
||||||
|
strokeWidth={2}
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
>
|
||||||
|
<g
|
||||||
|
strokeWidth="1.25"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M0 0h24v24H0z"
|
||||||
|
fill="none"
|
||||||
|
stroke="none"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M8 5v10a1 1 0 0 0 1 1h10"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M5 8h10a1 1 0 0 1 1 1v10"
|
||||||
|
/>
|
||||||
|
</g>
|
||||||
|
</svg>,
|
||||||
|
"keywords": [
|
||||||
|
"image",
|
||||||
|
"crop",
|
||||||
|
],
|
||||||
|
"label": "helpDialog.cropStart",
|
||||||
|
"name": "cropEditor",
|
||||||
|
"paletteName": "Finish image cropping",
|
||||||
|
"perform": [Function],
|
||||||
|
"predicate": [Function],
|
||||||
|
"trackEvent": {
|
||||||
|
"category": "menu",
|
||||||
|
},
|
||||||
|
"viewMode": true,
|
||||||
|
},
|
||||||
|
"separator",
|
||||||
{
|
{
|
||||||
"icon": <svg
|
"icon": <svg
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user