ID 567990 - hiero.ui.activeView() returns None when the Viewer is in fullscreen

Follow

Problem summary
hiero.ui.activeView() returns None when the Viewer is in fullscreen.
 
Customer reported version
Hiero 14.1v4
 
Customer reported platform
Rocky 9
 
Steps to reproduce
 
1) Open Hiero
 
2) Execute the following code in the Script Editor:

from PySide2 import QtWidgets, QtCore def function():     print(hiero.ui.activeView()) hotkey = '/' action = QtWidgets.QAction(None) action.triggered.connect(function) hiero.ui.registerAction(action) action.setShortcut(hotkey) action.setShortcutContext(QtCore.Qt.ApplicationShortcut) hiero.ui.mainWindow().addAction(action)
 
3) Press the / key to trigger the shortcut. It should return the active view object in the Script Editor output. For example, when the Viewer is the active view:
<ui.Viewer(0x26365c4c6b0) at 0x000002636986B7C0>
 
4) Mouse over the Viewer and press Ctrl+F.
 
5) Press the / key.
 
6) Exit fullscreen mode (Esc) and notice that None has been returned in the Script Editor.
 
Expected behaviour
hiero.ui.activeView() should return the Viewer object, even in fullscreen mode.
 
Actual behaviour
hiero.ui.activeView() returns None when the Viewer is in fullscreen.
 
Workaround
Unknown. 
 
Reproduced by support
This bug has been reproduced in:
Hiero 15.0v4 - Windows 10
Hiero 14.1v4 - Windows 10 - Linux CentOS 7
Nuke Studio 10.0v1 - Windows 10 - Linux CentOS 7
 
Earliest version tested
Nuke Studio 10.0v1
- This issue appears to be in all tested versions of the product
 

    We're sorry to hear that

    Please tell us why