ID 138884 - nuke.menu( 'Nodes' ).findItem('Menu/Node').shortcut() returns an empty string on Windows

Follow

Problem summary
nuke.menu( 'Nodes' ).findItem('Menu/Node').shortcut() returns an empty string on Windows


Customer reported version
Nuke 12.1v4


Customer reported platform

Windows


Steps to reproduce

1) In Nuke, open the Script Editor.

2) Run the following command: 

print nuke.menu("Nodes").findItem("Image/Read").shortcut()

3) Observe the output for the shortcut.


Expected behavior
The shortcut for the Read node should be output in the Script Editor.


Actual behavior
The Script Editor returns nothing. This happens for all shortcuts regardless of node type.


Workaround

Using the following snippet returns the correct value:

print nuke.menu("Nodes").findItem("Image/Read").action().shortcut().toString()


Reproduced by Support in
Nuke 12.2v2 - Windows 10

Nuke 12.1v1 - Windows 10

Nuke 12.0v1 - Windows 10

Nuke 11.0v1 - Windows 10

Nuke 10.0v1 - Windows 10

Nuke 9.0v1 - Windows 10

Nuke 8.0v1 - Windows 10


Unable to reproduce bug in:
Nuke 12.2v2 - macOS 10.13.6


Earliest version tested
Nuke 8.0v1- This issue appears to be in all versions of the product

    We're sorry to hear that

    Please tell us why