tui: cleanup unused imports and remove empty onKeyDown handler

This commit is contained in:
Dax Raad 2025-09-29 06:11:08 -04:00
parent d2bbe31177
commit e47cdca052
3 changed files with 4 additions and 5 deletions

View file

@ -34,7 +34,7 @@ export function Prompt(props: PromptProps) {
let anchor: BoxRenderable
let autocomplete: AutocompleteRef
const dialog = useDialog()
const keybind = useKeybind()
const local = useLocal()
const sdk = useSDK()

View file

@ -242,7 +242,7 @@ export function Session() {
const dialog = useDialog()
return (
<box paddingTop={1} paddingBottom={1} paddingLeft={2} paddingRight={2} flexGrow={1} onKeyDown={(e) => {}}>
<box paddingTop={1} paddingBottom={1} paddingLeft={2} paddingRight={2} flexGrow={1}>
<Show when={session()}>
<Header />
<scrollbox

View file

@ -1,9 +1,8 @@
import { useKeyboard, useRenderer, useTerminalDimensions } from "@opentui/solid"
import { batch, createContext, For, Show, useContext, type JSX, type ParentProps } from "solid-js"
import { batch, createContext, Show, useContext, type JSX, type ParentProps } from "solid-js"
import { Theme } from "@tui/context/theme"
import { Renderable, RGBA } from "@opentui/core"
import { createStore, produce } from "solid-js/store"
import { render } from "solid-js/web"
import { createStore } from "solid-js/store"
const Border = {
topLeft: "┃",