Skip to content

Commit

Permalink
fix: distinguish the command hotkeys in wrangler dev (#753)
Browse files Browse the repository at this point in the history
Closes #354
  • Loading branch information
petebacondarwin authored Apr 4, 2022
1 parent b933641 commit cf432ac
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .changeset/swift-mice-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"wrangler": patch
---

fix: distinguish the command hotkeys in wrangler dev

Closes #354
15 changes: 10 additions & 5 deletions packages/wrangler/src/dev/dev.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,16 @@ function InteractiveDevSession(props: InteractiveDevSessionProps) {
<>
<DevSession {...props} local={toggles.local} />
<Box borderStyle="round" paddingLeft={1} paddingRight={1}>
<Text>
{`B to open a browser, D to open Devtools, L to ${
toggles.local ? "turn off" : "turn on"
} local mode, C to clear console, X to exit`}
</Text>
<Text bold={true}>[b]</Text>
<Text> open a browser, </Text>
<Text bold={true}>[d]</Text>
<Text> open Devtools, </Text>
<Text bold={true}>[l]</Text>
<Text> {toggles.local ? "turn off" : "turn on"} local mode, </Text>
<Text bold={true}>[c]</Text>
<Text> clear console, </Text>
<Text bold={true}>[x]</Text>
<Text> to exit</Text>
</Box>
</>
);
Expand Down

0 comments on commit cf432ac

Please sign in to comment.