Skip to content

Commit 7796ade

Browse files
authored
feat: shortcuts case insensitive (#21224)
1 parent b6948bb commit 7796ade

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/vite/src/node/shortcuts.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export function bindCLIShortcuts<Server extends ViteDevServer | PreviewServer>(
7878
const onInput = async (input: string) => {
7979
if (actionRunning) return
8080

81+
input = input.trim().toLocaleLowerCase()
8182
if (input === 'h') {
8283
const loggedKeys = new Set<string>()
8384
server.config.logger.info('\n Shortcuts')

0 commit comments

Comments
 (0)