# gpui: Press \`enter\`, \`space\` to trigger click to focused element \(\#35075\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0025019db431ab7671079baaabaf0de872730160

Requested commit: 0025019db431ab7671079baaabaf0de872730160

Commit: 0025019db431ab7671079baaabaf0de872730160

Tree: aa34e1b6aab0c30e9aeea517735b10cc4ba58336

Author: Jason Lee

Committer: GitHub

## Message

```
gpui: Press `enter`, `space` to trigger click to focused element (#35075)

Release Notes:

- N/A

> Any user interaction that is equivalent to a click, such as pressing
the Space key or Enter key while the element is focused. Note that this
only applies to elements with a default key event handler, and
therefore, excludes other elements that have been made focusable by
setting the
[tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/tabindex)
attribute.

https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event

---------

Co-authored-by: Anthony <anthony@zed.dev>
Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com>
Co-authored-by: Umesh Yadav <23421535+imumesh18@users.noreply.github.com>
```

## Parents

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

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