1/** 2 * Dispara o evento de click em um elemento caso caso o foco esteja sobre ele. 3 * @param {Element} el 4 */ 5 6const enterClick = el => { 7 el.addEventListener('keydown', ev => { 8 if (ev.key == 'Enter') { 9 ev.preventDefault(); 10 el.dispatchEvent(new Event('click')); 11 } 12 }); 13}; 14 15export { enterClick };
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.