mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-21 23:19:09 +00:00
cleanup
This commit is contained in:
@@ -67,38 +67,6 @@ export default function EventList(props) {
|
|||||||
};
|
};
|
||||||
}, [handleKeyPress, cursor, events]);
|
}, [handleKeyPress, cursor, events]);
|
||||||
|
|
||||||
// useEffect(() => {
|
|
||||||
// let unsubscribe = tinykeys(window, {
|
|
||||||
// 'Alt+ArrowDown': () => {
|
|
||||||
// if (cursor == null) setCursor(0);
|
|
||||||
// else if (cursor < events.length - 1) setCursor(cursor + 1);
|
|
||||||
// },
|
|
||||||
// 'Alt+ArrowUp': () => {
|
|
||||||
// if (cursor == null) setCursor(0);
|
|
||||||
// else if (cursor > 0) setCursor(cursor - 1);
|
|
||||||
// },
|
|
||||||
// 'Alt+KeyE': (event) => {
|
|
||||||
// event.preventDefault();
|
|
||||||
// if (cursor == null) return;
|
|
||||||
// eventsHandler('add', { type: 'event', order: cursor + 1 });
|
|
||||||
// },
|
|
||||||
// 'Alt+KeyD': (event) => {
|
|
||||||
// event.preventDefault();
|
|
||||||
// if (cursor == null) return;
|
|
||||||
// eventsHandler('add', { type: 'delay', order: cursor + 1 });
|
|
||||||
// },
|
|
||||||
// 'Alt+KeyB': (event) => {
|
|
||||||
// event.preventDefault();
|
|
||||||
// if (cursor == null) return;
|
|
||||||
// eventsHandler('add', { type: 'block', order: cursor + 1 });
|
|
||||||
// },
|
|
||||||
// });
|
|
||||||
// if (cursor > events.length - 1) setCursor(events.length - 1);
|
|
||||||
// return () => {
|
|
||||||
// unsubscribe();
|
|
||||||
// };
|
|
||||||
// }, [cursor, events, eventsHandler]);
|
|
||||||
|
|
||||||
// handle incoming messages
|
// handle incoming messages
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (socket == null) return;
|
if (socket == null) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user