Closing preference window without confirming a change (as in not hitting the return key) will act as if it was confirmed.