Published
Edited
Jun 4, 2018
Insert cell
Insert cell
Insert cell
mutable keys = ({})
Insert cell
Insert cell
Insert cell
{
window.addEventListener('keydown', (e) => {
var keys_clone = {...keys}
keys_clone[e.key] = true
mutable keys = keys_clone
})
window.addEventListener('keyup', (e) => {
var keys_clone = {...keys}
delete keys_clone[e.key]
mutable keys = keys_clone
})
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more