Same remark as for "workspaceInvertVisibleWidgetAction". Actually the two seems identical. Refactor to avoid the copy/paste.