Helper to check whether an active element or event target is a text input field,
textarea, select dropdown, or contenteditable element where keyboard shortcuts
should not be intercepted.
Parameters
target: EventTarget|null = ...
The target element to test (defaults to document.activeElement).
Helper to check whether an active element or event target is a text input field, textarea, select dropdown, or contenteditable element where keyboard shortcuts should not be intercepted.