solve shortcut conflicts between layout and code views