Download packages/app/src/pages/home-session-open.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 365 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/app/src/pages/home-session-open.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/app/src/pages/home-session-open.ts
-
curl -L -o home-session-open.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/app/src/pages/home-session-open.ts
365 Bytes
| export function shouldOpenSessionInBackground(input: { | |
| button: number | |
| mac: boolean | |
| meta: boolean | |
| ctrl: boolean | |
| shift: boolean | |
| alt: boolean | |
| }) { | |
| if (input.button === 1) return true | |
| if (input.button !== 0) return false | |
| if (input.shift || input.alt) return false | |
| if (input.mac) return input.meta && !input.ctrl | |
| return input.ctrl && !input.meta | |
| } | |