Shorcuts Improvements Finished
This commit is contained in:
1 parent
827dcbaee6
commit
30aea18914
6 files changed
+43
-21
No files matched your search
@@ -9,7 +9,7 @@
|
||||
"config": true
|
||||
},
|
||||
"initialValues": {
|
||||
"config": "{\"node\":{\"distancePercentage\":60,\"radiusPercentage\":85,\"massPercentage\":100,\"animationSteps\":2,\"menuItem\":{\"widthPercentage\":100,\"heightPercentage\":60,\"radiusPercentage\":90}},\"physics\":false,\"detachUsingMouse\":false }"
|
||||
"config": "{\"node\":{\"distancePercentage\":60,\"radiusPercentage\":85,\"massPercentage\":100,\"animationSteps\":2,\"menuItem\":{\"widthPercentage\":100,\"heightPercentage\":60,\"radiusPercentage\":90}},\"physics\":false,\"shortcuts\":{\"toggleMapMode\":\"M\",\"toggleDrawRelationshipLines\":\"R\",\"toggleDrawParentLines\":\"C\",\"saveWorkspace\":\"S\",\"adjustAspectRatio\":\"A\"}}"
|
||||
},
|
||||
"menuItems": [
|
||||
{
|
||||
|
||||
@@ -59,6 +59,43 @@
|
||||
{
|
||||
"style": "List",
|
||||
"text": "detachUsingMouse defines if you can detach nodes from it's parent or reference parents only using the mouse (when true) or if you can not use the mouse for that and can only do it using the detach buttons on the icon's menu (when false)."
|
||||
},
|
||||
{
|
||||
"style": "Subtitle",
|
||||
"text": "Shorcut Properties"
|
||||
},
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "Shorcuts are key stroke combinations that helps users execute certain actions very quickly. To execute a shorcut users need to simultaniously press CTRL + SHIFT + a pre-defined key.",
|
||||
"updated": 1625419324367
|
||||
},
|
||||
{
|
||||
"style": "Success",
|
||||
"text": "Shorcuts default values an be seen below. You can modify those values by changing the Config Properties listed below."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "toggleMapMode defines which letter will be used as a Shorcut of entering and leaving the Map Mode."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "toggleDrawRelationshipLines defines which letter will be used as a Shorcut for turning on and off the drawing of Reference Lines.",
|
||||
"updated": 1625419127491
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "toggleDrawParentLines defines which letter will be used as a Shorcut for turning on and off the drawing of Parent Lines.",
|
||||
"updated": 1625419130924
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "saveWorkspace defines which letter will be used as a Shorcut for saving the Workspace .",
|
||||
"updated": 1625419134674
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "adjustAspectRation defines which letter will be used as a Shorcut for forcing a Time Machine to adjust it's aspect ratio according to the size of the screen a user currently have.",
|
||||
"updated": 1625419123375
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
function newFoundationsGlobalsShorcuts() {
|
||||
let thisObject = {
|
||||
TOGGLE_MAP_MODE: 'M',
|
||||
TOGGLE_DRAW_REFERENCE_LINES: 'R',
|
||||
TOGGLE_DRAW_PARENT_LINES: 'C',
|
||||
SAVE_WORKSPACE: 'S',
|
||||
ADJUST_ASPECT_RATIO: 'A'
|
||||
}
|
||||
return thisObject
|
||||
}
|
||||
@@ -231,7 +231,7 @@ function newEdgeEditor() {
|
||||
if (
|
||||
event.shiftKey === true &&
|
||||
(event.ctrlKey === true || event.metaKey === true) &&
|
||||
(event.key === UI.projects.foundations.globals.shorcuts.ADJUST_ASPECT_RATIO || event.key === UI.projects.foundations.globals.shorcuts.ADJUST_ASPECT_RATIO.toLowerCase())
|
||||
(event.key === UI.projects.foundations.spaces.floatingSpace.settings.shortcuts.adjustAspectRatio || event.key === UI.projects.foundations.spaces.floatingSpace.settings.shortcuts.adjustAspectRatio.toLowerCase())
|
||||
) {
|
||||
resetAspectRatio()
|
||||
return
|
||||
|
||||
@@ -8,11 +8,6 @@
|
||||
"name": "Zoom",
|
||||
"propertyName": "zoom",
|
||||
"functionName": "newFoundationsGlobalsZoom"
|
||||
},
|
||||
{
|
||||
"name": "Shortcuts",
|
||||
"propertyName": "shorcuts",
|
||||
"functionName": "newFoundationsGlobalsShorcuts"
|
||||
}
|
||||
],
|
||||
"functionLibraries": [
|
||||
|
||||
+4
-4
@@ -418,7 +418,7 @@ function newCanvas() {
|
||||
if (
|
||||
event.shiftKey === true &&
|
||||
(event.ctrlKey === true || event.metaKey === true) &&
|
||||
(event.key === UI.projects.foundations.globals.shorcuts.TOGGLE_MAP_MODE || event.key === UI.projects.foundations.globals.shorcuts.TOGGLE_MAP_MODE.toLowerCase())
|
||||
(event.key === UI.projects.foundations.spaces.floatingSpace.settings.shortcuts.toggleMapMode || event.key === UI.projects.foundations.spaces.floatingSpace.settings.shortcuts.toggleMapMode.toLowerCase())
|
||||
) {
|
||||
UI.projects.foundations.spaces.floatingSpace.toggleMapMode()
|
||||
event.preventDefault()
|
||||
@@ -428,7 +428,7 @@ function newCanvas() {
|
||||
if (
|
||||
event.shiftKey === true &&
|
||||
(event.ctrlKey === true || event.metaKey === true) &&
|
||||
(event.key === UI.projects.foundations.globals.shorcuts.TOGGLE_DRAW_REFERENCE_LINES || event.key === UI.projects.foundations.globals.shorcuts.TOGGLE_DRAW_REFERENCE_LINES.toLowerCase())
|
||||
(event.key === UI.projects.foundations.spaces.floatingSpace.settings.shortcuts.toggleDrawRelationshipLines || event.key === UI.projects.foundations.spaces.floatingSpace.settings.shortcuts.toggleDrawRelationshipLines.toLowerCase())
|
||||
) {
|
||||
UI.projects.foundations.spaces.floatingSpace.toggleDrawReferenceLines()
|
||||
event.preventDefault()
|
||||
@@ -438,7 +438,7 @@ function newCanvas() {
|
||||
if (
|
||||
event.shiftKey === true &&
|
||||
(event.ctrlKey === true || event.metaKey === true) &&
|
||||
(event.key === UI.projects.foundations.globals.shorcuts.TOGGLE_DRAW_PARENT_LINES || event.key === UI.projects.foundations.globals.shorcuts.TOGGLE_DRAW_PARENT_LINES.toLowerCase())
|
||||
(event.key === UI.projects.foundations.spaces.floatingSpace.settings.shortcuts.toggleDrawParentLines || event.key === UI.projects.foundations.spaces.floatingSpace.settings.shortcuts.toggleDrawParentLines.toLowerCase())
|
||||
) {
|
||||
UI.projects.foundations.spaces.floatingSpace.toggleDrawChainLines()
|
||||
event.preventDefault()
|
||||
@@ -448,7 +448,7 @@ function newCanvas() {
|
||||
if (
|
||||
event.shiftKey === true &&
|
||||
(event.ctrlKey === true || event.metaKey === true) &&
|
||||
(event.key === UI.projects.foundations.globals.shorcuts.SAVE_WORKSPACE || event.key === UI.projects.foundations.globals.shorcuts.SAVE_WORKSPACE.toLowerCase())
|
||||
(event.key === UI.projects.foundations.spaces.floatingSpace.settings.shortcuts.saveWorkspace || event.key === UI.projects.foundations.spaces.floatingSpace.settings.shortcuts.saveWorkspace.toLowerCase())
|
||||
) {
|
||||
UI.projects.foundations.spaces.designSpace.workspace.save()
|
||||
if (event.preventDefault !== undefined) {
|
||||
|
||||
Reference in new issue
Block a user