Skip to content

[Win] Modifiers keys make init script crash #1492

@Shotman

Description

@Shotman

Describe the bug
On windows when using the command tauri init from the @tauri-apps/cli package if any of those keys, left or right, CTRL , ALT, AltGr, SHIFT and Caps Lock are pressed it makes the script crash

To Reproduce
Steps to reproduce the behavior:
In a new folder

  1. yarn init
  2. yarn add @tauri-apps/cli
  3. At any prompt, press any of the key, the script will crash

Expected behavior
The script should take the input

Platform and Versions (please complete the following information):

OS: Windows 10
Node: 15.12.0
NPM: 7.9
Yarn: 1.22.5
Rustc: 1.51.0

It seems to be related to the crates dialoguer & console

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions