My aim is to increase the size of form fields when the cursor focuses on them, either through a mouse click or by tabbing using the keyboard.
By utilizing document.activeElement focus, I can identify when the user clicks inside a text input or selects an element.
The issue arises when users navigate to the select list using the tab key only. In this scenario, if a user presses tab and reaches the select list element without using the mouse, the focus event will not trigger, causing the select list not to be resized.
Which event would indicate if the cursor is currently positioned on a select element while pressing the tab key alone?