import{EventEmitter as e}from"events";export class DashboardKeyEmitter extends e{constructor(){super(),this.onkeydown=e=>{"Delete"==e.key?(e.preventDefault(),this.emit("delete",e)):"Escape"==e.key?(e.preventDefault(),this.emit("deselect",e)):"s"==e.key&&e.ctrlKey&&(e.preventDefault(),this.emit("save",e))},window.addEventListener("keydown",this.onkeydown)}}