Add 'focus' event.
Factor out widget types from 'CRUD' examples.