Move and rename DashboardInputEvent->InputEvent

This commit is contained in:
James Babcock committed 2026-08-30 13:02:44 -07:00
1 parent 3e8be93833
commit 80d688dd4e
51 files changed
+299 -361

No files matched your search

+3 -7
View File
@@ -1,11 +1,7 @@
import { GrayImage } from "../graphics/image";
import { singlePlane, type Plane } from "../graphics/plane";
import {
noopLayerActions,
LayerStack,
type DashboardInputEvent,
type Layer,
} from "./layers";
import { type InputEvent } from "./gestures";
import { type Layer, LayerStack, noopLayerActions } from "./layers";
import { MenuLayer, type MenuItem, type MenuLayout } from "./menu";
import type { WorkerAppReply } from "./shell/worker-window";
@@ -67,7 +63,7 @@ export class WindowMenu {
}
/** Route an input event to the menu; the menu closes by popping itself. */
async handleInput(event: DashboardInputEvent): Promise<void> {
async handleInput(event: InputEvent): Promise<void> {
const stack = this.stack;
if (!stack) return;
await stack.handleInput(event);