Cursor-in-palette patch