model/autofocus Cotonic

The autofocus model looks for elements with the autofocus attribute which are just added to the dom tree. When this happens, it auto focusus them. The reason for this is is that the autofocus attribute only works during document render stage, but it is very handy to have available all the time.

event/focus/+key

The element with key has just been focussed.

Edit on GitHub