Hi @lassoan, could you please elaborate what you meant here?
Like @SANTIAGO_PENDON_MING tried, I was also disabling the shortcut “Ctrl+Z” with custom logic using -
def disableShortcut(sequence: str):
shortcut = qt.QShortcut(slicer.util.mainWindow())
shortcut.setKey(qt.QKeySequence(sequence))
shortcut.connect("activated()", lambda: None)
After disabling the shortcut once, if I restart the application with the calls to this function removed( therefore no more “Ctrl+z” shortcut override), I am not able to use the shortcut for the segment editor. Like @SANTIAGO_PENDON_MING mentioned, the shortcut doesn’t work anymore. Would you happen to know why?
Found this in another post as well :-
So are you suggesting that I should not disable “Ctrl+z“ based on custom logic?