From eb92342bde5f91f9c0729ae893d98a575198ccd5 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 18 Oct 2019 16:51:07 +0200 Subject: [PATCH] shortcuts keys done --- .../FunctionLibraries/ShortcutKeys.js | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/StrategySpace/Workspace/FunctionLibraries/ShortcutKeys.js b/StrategySpace/Workspace/FunctionLibraries/ShortcutKeys.js index ea239095a..826ad1b8a 100644 --- a/StrategySpace/Workspace/FunctionLibraries/ShortcutKeys.js +++ b/StrategySpace/Workspace/FunctionLibraries/ShortcutKeys.js @@ -59,6 +59,12 @@ function newShortcutKeys () { return child } } + for (let m = 0; m < node.announcements.length; m++) { + child = getNodeByShortcutKey(node.announcements[m], searchingKey) + if (child !== undefined) { + return child + } + } if (node.payload.uiObject.shortcutKey === searchingKey) { return node } else { @@ -117,6 +123,12 @@ function newShortcutKeys () { return child } } + for (let m = 0; m < node.announcements.length; m++) { + child = getNodeByShortcutKey(node.announcements[m], searchingKey) + if (child !== undefined) { + return child + } + } if (node.payload.uiObject.shortcutKey === searchingKey) { return node } else { @@ -131,6 +143,12 @@ function newShortcutKeys () { return child } } + for (let m = 0; m < node.announcements.length; m++) { + child = getNodeByShortcutKey(node.announcements[m], searchingKey) + if (child !== undefined) { + return child + } + } if (node.payload.uiObject.shortcutKey === searchingKey) { return node } else { @@ -145,6 +163,12 @@ function newShortcutKeys () { return child } } + for (let m = 0; m < node.announcements.length; m++) { + child = getNodeByShortcutKey(node.announcements[m], searchingKey) + if (child !== undefined) { + return child + } + } if (node.payload.uiObject.shortcutKey === searchingKey) { return node } else { @@ -430,6 +454,41 @@ function newShortcutKeys () { return } } + case 'Social Bots': { + let child + for (let m = 0; m < node.bots.length; m++) { + child = getNodeByShortcutKey(node.bots[m], searchingKey) + if (child !== undefined) { + return child + } + } + if (node.payload.uiObject.shortcutKey === searchingKey) { + return node + } else { + return + } + } + case 'Telegram Bot': { + let child + for (let m = 0; m < node.announcements.length; m++) { + child = getNodeByShortcutKey(node.announcements[m], searchingKey) + if (child !== undefined) { + return child + } + } + if (node.payload.uiObject.shortcutKey === searchingKey) { + return node + } else { + return + } + } + case 'Announcement': { + if (node.payload.uiObject.shortcutKey === searchingKey) { + return node + } else { + return + } + } case 'Layer Manager': { let child for (let m = 0; m < node.layers.length; m++) {