Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Win] Modifiers keys make init script crash #1492

Closed
Shotman opened this issue Apr 14, 2021 · 4 comments
Closed

[Win] Modifiers keys make init script crash #1492

Shotman opened this issue Apr 14, 2021 · 4 comments

Comments

@Shotman
Copy link

Shotman commented Apr 14, 2021

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

@parker-codes
Copy link

parker-codes commented Apr 15, 2021

I ran into this as well. Can't add a capitalized window title without shift! 😁

@Kethku
Copy link

Kethku commented Apr 20, 2021

I also encountered this on windows with powershell. However the problem didn't happen with cmd.

@lucasfernog
Copy link
Member

This was supposed to be fixed by console-rs/dialoguer#110 :/

@amrbashir
Copy link
Member

amrbashir commented Apr 20, 2021

dialoguer depends on console and the actual fix console-rs/console#96 just got merged 12 days ago, so we still need console to publish a new release and use it as dependency patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants