diff --git a/FloatingSpace/StrategyPart.js b/FloatingSpace/StrategyPart.js index b03ace8a0..da5264bee 100644 --- a/FloatingSpace/StrategyPart.js +++ b/FloatingSpace/StrategyPart.js @@ -19,6 +19,7 @@ function newStrategyPart () { circularProgressBar: undefined, isExecuting: undefined, isRunning: undefined, + shortcutKey: undefined, run: run, stop: stop, getReadyToAttach: getReadyToAttach, diff --git a/FloatingSpace/StrategyPartConstructor.js b/FloatingSpace/StrategyPartConstructor.js index c38b0c527..91c3807e0 100644 --- a/FloatingSpace/StrategyPartConstructor.js +++ b/FloatingSpace/StrategyPartConstructor.js @@ -73,6 +73,12 @@ function newStrategyPartConstructor () { floatingLayer.addFloatingObject(floatingObject) + if (payload.node.savedPayload !== undefined) { + if (payload.node.savedPayload.uiObject !== undefined) { + payload.uiObject.shortcutKey = payload.node.savedPayload.uiObject.shortcutKey + } + } + return }