function onKeyUpTest(event) { if (process.env.NODE_ENV !== 'development') return if (!isHotkey(event, TEST_HOTKEY)) return elementCollection.get('timelineNotification').style.display = '' elementCollection.get('timelineCount').textContent = 3 }
function onKeyDown(event) { const { textarea } = elementCollection.getAll() if (document.activeElement !== textarea) return if (!isHotkey(event, { key: 'Escape' })) return textarea.blur() }