vizhub-core / vzcode

Mob Programming Code Editor
MIT License
65 stars 13 forks source link

Bug: Pressing 'Enter' in the Create File Modal gets around the file name validation check #632

Closed enuessle closed 6 months ago

enuessle commented 6 months ago

In the File Creation Modal, the 'Create File' button is disabled when the file name is not valid. The keyboard shortcut to create a file with 'Enter' is not disabled. This let's you create files with invalid names, often breaking the sync.

Example: Insert an emoji 😀 as a file name, and pressing 'enter' bypasses the validation check and creates a new file with 😀 as it's name, which doesn't work in the file system, causing issues and disconnecting the editor.