diff --git a/ui/src/routes/devices.$id.tsx b/ui/src/routes/devices.$id.tsx index f2b7aac..7005080 100644 --- a/ui/src/routes/devices.$id.tsx +++ b/ui/src/routes/devices.$id.tsx @@ -478,16 +478,10 @@ export default function KvmIdRoute() {
{ - e.stopPropagation(); - }} + onKeyUp={e => e.stopPropagation()} onKeyDown={e => { e.stopPropagation(); - if (e.key === "Escape") { - if (location.pathname !== "/other-session") { - navigate(".."); - } - } + if (e.key === "Escape") navigate(".."); }} >