feat: public events

This commit is contained in:
cv
2021-04-26 23:21:30 +02:00
parent 004b31b5e7
commit b533d2493e
5 changed files with 246 additions and 101 deletions
@@ -40,11 +40,6 @@ export default function EventList(props) {
if (cursor == null) return;
eventsHandler('add', { type: 'block', order: cursor + 1 });
},
'Alt+KeyN': (event) => {
event.preventDefault();
if (cursor == null) return;
if (events[cursor].type === 'event') setNext(cursor);
},
});
if (cursor > events.length - 1) setCursor(events.length - 1);
return () => {