MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / shouldNavigatePrevious

Function shouldNavigatePrevious

console/src/platform/shell/Shell.tsx:54–56  ·  view source on GitHub ↗
(event: EditorEvent)

Source from the content-addressed store, hash-verified

52import useShellWebsocket, { shellWsEmitterEvents } from "./useShellWebsocket";
53
54function shouldNavigatePrevious(event: EditorEvent) {
55 return event.cursor.line === 1;
56}
57
58function shouldNavigateNext(event: EditorEvent) {
59 return event.cursor.line === event.state.lineCount;

Callers 1

ShellFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected