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 -3
View File
@@ -1,4 +1,4 @@
import { GESTURE_DOUBLE_CLICK } from "./gestures";
import { GESTURE_DOUBLE_CLICK, InputEvent } from "./gestures";
import {
getBooleanSetting,
getStringSetting,
@@ -17,7 +17,7 @@ import {
import { isLocalModelReady } from "../native/llama";
import { drawRightValueMenuItem, drawToggleMenuItem, MenuItem, openModalMenu } from "./menu";
import { LIST_ROW_TEXT_INSET, lineStep } from "./metrics";
import { DashboardInputEvent, Layer, type LayerContext } from "./layers";
import { Layer, type LayerContext } from "./layers";
import { GrayImage } from "~/graphics/image";
export type NightscoutSettings = {
@@ -878,7 +878,7 @@ export class EditTextSettingLayer implements Layer {
return image;
}
handleInput(event: DashboardInputEvent, ctx: LayerContext): void {
handleInput(event: InputEvent, ctx: LayerContext): void {
if (event.type === "double-click") {
void ctx.actions.endTextSettingEdit();
ctx.stack.pop();