Show shortcut key with crtl
This commit is contained in:
1 parent
d1f3d3c278
commit
f24b05a7be
1 file changed
+7
-1
@@ -286,8 +286,14 @@ function newCanvas () {
|
||||
nodeOnFocus.payload.uiObject.shortcutKey = event.key
|
||||
nodeOnFocus.payload.uiObject.setValue('Shortcut Key: Ctrl + ' + event.key)
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
if (event.ctrlKey === true && nodeOnFocus !== undefined) {
|
||||
if (nodeOnFocus.payload.uiObject.shortcutKey !== undefined && nodeOnFocus.payload.uiObject.shortcutKey !== '') {
|
||||
nodeOnFocus.payload.uiObject.setValue('Shortcut Key: Ctrl + ' + nodeOnFocus.payload.uiObject.shortcutKey)
|
||||
}
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user