ally.style.focusSource Example

Use Tab and the mouse (or touch) as well as the buttons to focus the input elements to see them styled differently depending on the input method used.



focus was set by pointer at least once

focus was set by keyboard at least once

focus was set by script at least once