action: allow enabled to be set from function.
remove debug code.
workspace: improve focus handling for actions.