Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chibat committed Oct 27, 2024
1 parent 03fd264 commit b98885e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .prototools
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
deno = "1.46.3"
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"tasks": {
"win": "deno run --watch=static/,routes/ --allow-env --allow-read --allow-write=.,$LOCALAPPDATA/Temp --allow-run=$(where deno),$LOCALAPPDATA/Cache/esbuild/bin/esbuild-windows-64@0.19.4 --allow-net=:8000,deno.land,esm.sh,accounts.google.com,www.googleapis.com,cdn.jsdelivr.net,$SUPABASE_HOST dev.ts",
"arm": "deno run --watch=static/,routes/ --allow-env --allow-read --allow-write=.,/tmp --allow-run=deno,$HOME/.cache/esbuild/bin/esbuild-linux-arm64@0.19.4 --allow-net=:8000,deno.land,esm.sh,accounts.google.com,www.googleapis.com,cdn.jsdelivr.net,$SUPABASE_HOST dev.ts",
"linux": "export $(grep -v ^# .env) && deno run --watch=static/,routes/ --allow-env --allow-read --allow-write=.,$HOME/.cache/fresh,$HOME/.cache/esbuild --allow-run=deno,$HOME/.cache/esbuild/bin/@esbuild-linux-x64@0.19.4 --allow-net=:8000,deno.land,dl.deno.land,esm.sh,accounts.google.com,www.googleapis.com,cdn.jsdelivr.net,$SUPABASE_HOST,registry.npmjs.org dev.ts",
"linux": "export $(grep -v ^# .env) && deno run --watch=static/,routes/ --allow-env -R -W=.,$HOME/.cache/fresh,$HOME/.cache/esbuild --allow-run=$HOME/.proto/tools/deno/1.46.3/deno,$HOME/.cache/esbuild/bin/@esbuild-linux-x64@0.19.4 -N=:8000,deno.land,dl.deno.land,esm.sh,accounts.google.com,www.googleapis.com,cdn.jsdelivr.net,$SUPABASE_HOST,registry.npmjs.org dev.ts",
"update": "deno run -A -r https://fresh.deno.dev/update .",
"build": "git show --format='%H' --no-patch > static/build.txt && date --iso-8601='seconds' >> static/build.txt && deno run --allow-env --allow-read --allow-write=.,$HOME/.cache/fresh,$HOME/.cache/esbuild --allow-run=deno,$HOME/.cache/esbuild/bin/@esbuild-linux-x64@0.19.4 --allow-net=deno.land,dl.deno.land,esm.sh,cdn.jsdelivr.net,registry.npmjs.org dev.ts build",
"env": "env",
Expand Down
3 changes: 2 additions & 1 deletion islands/PostEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ export default function Edit(props: { post: PostViewType }) {
);
} else {
Mousetrap(textarea.current).bind(
"mod+enter",
["mod+enter", "mod+s"],
() => {
save();
return false;
},
);
Mousetrap(textarea.current).bind(
Expand Down
3 changes: 2 additions & 1 deletion islands/PostNew.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ export default function Post() {
);
} else {
Mousetrap(textarea.current).bind(
"mod+enter",
["mod+enter", "mod+s"],
() => {
post();
return false;
},
);
Mousetrap(textarea.current).bind(
Expand Down
2 changes: 1 addition & 1 deletion routes/shortcuts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default defineRoute(async (req, _ctx) => {
</tr>
<tr>
<td>Send/Save Post</td>
<td>(CTRL|⌘)+Enter</td>
<td>(CTRL|⌘)+Enter, (CTRL|⌘)+s</td>
</tr>
<tr>
<td>Switch between Preview and Edit</td>
Expand Down

0 comments on commit b98885e

Please sign in to comment.