# ui: Make the NumberField in edit mode work \(\#45447\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/a5540a08fb7ea3f6a94934e599eb843a8496d38d)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: a5540a08fb7ea3f6a94934e599eb843a8496d38d

Requested commit: a5540a08fb7ea3f6a94934e599eb843a8496d38d

Commit: a5540a08fb7ea3f6a94934e599eb843a8496d38d

Tree: abd6b577fc3c0c975f67d25a6b0f50ce27d9722e

Author: Danilo Leal

Committer: GitHub

## Message

```
ui: Make the NumberField in edit mode work (#45447)

- Make the buttons capable of changing the editor's content
(incrementing or decrementing the value)
- Make arrow key up and down increment and decrement the editor value
- Tried to apply a bit of DRY here by creating some functions that can
be reused across the buttons and editor given they all essentially do
the same thing (change the value)
- Fixed an issue where the editor would not allow focus to move
elsewhere, making it impossible to open a dropdown, for example, if your
focus was on the number field's editor

Release Notes:

- N/A
```

## Parents

- [3e8c25f5a9e41a5303d30ff752576201118700d8](https://git.cafe/gitcafe/zed/commit/3e8c25f5a9e41a5303d30ff752576201118700d8?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/a5540a08fb7ea3f6a94934e599eb843a8496d38d?format=markdown)
