Add focus / cursor management.