From 67c9b06cd6dc8dc7db54969e22443b2dd1cd3562 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 16 Oct 2019 19:16:11 +0200 Subject: [PATCH] Showing id when Period key pressed --- Canvas.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Canvas.js b/Canvas.js index 8eae9a667..98358cc03 100644 --- a/Canvas.js +++ b/Canvas.js @@ -236,6 +236,14 @@ function newCanvas () { return } + if (event.code === 'Period') { + let nodeOnFocus = canvas.strategySpace.workspace.getNodeThatIsOnFocus() + if (nodeOnFocus !== undefined) { + nodeOnFocus.payload.uiObject.setValue('Id: ' + nodeOnFocus.id) + return + } + } + if (event.ctrlKey === true) { if (event.keyCode >= 65 && event.keyCode <= 90) { event.preventDefault()