zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
34.48k stars 1.71k forks source link

The new dev server name entry still retains focus after the name has been submitted, even though it is disabled #11389

Closed Moshyfawn closed 1 week ago

Moshyfawn commented 2 weeks ago

Check for existing issues

Describe the bug / provide steps to reproduce it

  1. Click on "Recent Projects
  2. Click "Connect..."
  3. Click "+ New Server
  4. Enter the server name in the "Name" input
  5. Click "Create"
  6. Notice that the "Name" field is now disabled, but still has focus and contains the cursor at the last position.

The expected behaviour would be

Environment

Zed: v0.135.0 (Zed Nightly 89039f6f34910fadce76c73258b731f0a016ccd6) OS: macOS 14.4.1 Memory: 18 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

image

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

No response

Moshyfawn commented 2 weeks ago

In addition, if the input still has focus, I can submit the new server form by pressing Enter, which creates as many server configs as I submit the form.

https://github.com/zed-industries/zed/assets/16290753/d1b8fe06-c953-4994-9f1c-46105dbb8127

Moshyfawn commented 1 week ago

cc: @ConradIrwin @bennetbo