Add onchange event to properties palette. (Should have been there all
along.)