Sha256: 2a7736ade2d0fbbeedb816daa8b94eb917fe31fffd4fb78719d733f812981a3b
Contents?: true
Size: 386 Bytes
Versions: 53
Compression:
Stored size: 386 Bytes
Contents
export default hideOnEsc = { name: "hideOnEsc", defaultValue: true, fn({ hide }) { function onKeyDown(event) { if (event.keyCode === 27) { hide(); } } return { onShow() { document.addEventListener("keydown", onKeyDown); }, onHide() { document.removeEventListener("keydown", onKeyDown); }, }; }, };
Version data entries
53 entries across 53 versions & 1 rubygems