Called when the keyboard focus changes into or out of this buffer (and not to/from a snip within the buffer) with #t if the focus is being turned on, #f otherwise.