This commit is contained in:
Chris Wanstrath 2025-10-08 11:00:56 -07:00
parent dd7ca72f3a
commit 52a4f3c06d
3 changed files with 7 additions and 3 deletions

View File

@ -22,6 +22,10 @@
"typescript": "^5"
},
"dependencies": {
"hono": "^4.9.10",
"kleur": "^4.1.5"
},
"devDependencies": {
"@types/bun": "latest"
}
}

View File

@ -1,5 +1,5 @@
////
// version: 52aae6c
// version: dd7ca72
// src/js/dom.ts
var content2 = $("content");
@ -1212,7 +1212,7 @@ async function handleClick2(e) {
e.preventDefault();
await runCommand(href.slice(1));
focusInput();
} else if (!isBrowsing()) {
} else if (!isBrowsing() && !e.metaKey) {
e.preventDefault();
openBrowser(href);
}

View File

@ -25,7 +25,7 @@ async function handleClick(e: MouseEvent) {
e.preventDefault()
await runCommand(href.slice(1))
focusInput()
} else if (!isBrowsing()) {
} else if (!isBrowsing() && !e.metaKey) {
e.preventDefault()
openBrowser(href)
}