Fixing focus switching between pattern and frame editors.