# Focus shift while searching the user directory

**URL:** https://meta.discourse.org/t/focus-shift-while-searching-the-user-directory/294359
**Category:** UX
**Tags:** user-directory
**Created:** [February 6, 2024, 3:54pm UTC](https://meta.discourse.org/t/focus-shift-while-searching-the-user-directory/294359 "2024-02-06T15:54:03Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [February 6, 2024, 3:54pm UTC](https://meta.discourse.org/t/focus-shift-while-searching-the-user-directory/294359/1 "2024-02-06T15:54:03Z")

</div>

If you type not fast enough in the search field of the user directory, the focus shifts to ❤ Received, leading to the activation of keyboard shortcuts if you don’t notice.  
Short screencast of the focus shift:

And one where, by trying to add a “u”, the keyboard shortcut is triggered:

---

<div class="post-metadata">

### Author: ![yaacobyy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yaacobyy/32/452025_2.png) [@yaacobyy](https://meta.discourse.org/u/yaacobyy)
#### Post date: [October 9, 2024, 5:57am UTC](https://meta.discourse.org/t/focus-shift-while-searching-the-user-directory/294359/3 "2024-10-09T05:57:32Z")

</div>

Copied from [here](https://meta.discourse.org/t/typing-in-the-users-search-window-is-stopped/329872):  
When I’m searching for a group name [here](https://meta.discourse.org/g) and start to type, the search is filtered according to all the symbols I already typed after each symbol. I can wait as long as I want between the symbols.  
However, when I search for a username [here](https://meta.discourse.org/u?order=username), after each symbol, I must type the next symbol after not more than ~0.4Sec or else, the results are filtered, and the cursor is no longer inside the search window, so I cannot continue typing (unless I put the cursor back inside the search window again and again after each symbol).

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [October 9, 2024, 6:23am UTC](https://meta.discourse.org/t/focus-shift-while-searching-the-user-directory/294359/4 "2024-10-09T06:23:41Z")

</div>

I reckon 0,2 sec is closer 😜 It has been such as long I’ve used Discourse. That’s why I think it is un-usable and I as an admin go to admin side if I need to operate with users.

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [October 16, 2024, 3:37am UTC](https://meta.discourse.org/t/focus-shift-while-searching-the-user-directory/294359/6 "2024-10-16T03:37:33Z")

</div>

Just merged a fix which should prevent this behaviour: [https://github.com/discourse/discourse/pull/29209](https://github.com/discourse/discourse/pull/29209)

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [October 16, 2024, 6:51am UTC](https://meta.discourse.org/t/focus-shift-while-searching-the-user-directory/294359/7 "2024-10-16T06:51:51Z")

</div>

Works great. Thanks.

But you broke the table headings for plugins.

 ![Screenshot_20241016_085102_Firefox](https://global.discourse-cdn.com/meta/original/4X/e/8/5/e85d1e3740b4d20e68f49990d9500f78178d37fa.jpeg)

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [October 16, 2024, 6:52am UTC](https://meta.discourse.org/t/focus-shift-while-searching-the-user-directory/294359/8 "2024-10-16T06:52:28Z")

</div>

Yikes, thanks a lot.

 ![This image is a four-panel meme featuring the character Grumpy from the Pixar film Toy Story, holding a sign with various phrases. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/d/3/d/d3d06d3c1bafc3935affecb27dd7d45972387276.jpeg)

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [October 16, 2024, 7:30am UTC](https://meta.discourse.org/t/focus-shift-while-searching-the-user-directory/294359/9 "2024-10-16T07:30:15Z")

</div>

I also have the impression that your changes also broke the [User Card Directory](https://meta.discourse.org/t/user-card-directory/144479) component. At least I can no longer click on “❤ received” or “❤ given” in the cards view to change the order.

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [October 18, 2024, 7:52am UTC](https://meta.discourse.org/t/focus-shift-while-searching-the-user-directory/294359/10 "2024-10-18T07:52:48Z")

</div>

Appreciate your callout here @moin!

- [FIX: Support add\_directory\_column in glimmered table header toggle by nattsw · Pull Request #29231 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/29231)
- [FIX: Update order when column is clicked by nattsw · Pull Request #40 · discourse/discourse-user-card-directory · GitHub](https://github.com/discourse/discourse-user-card-directory/pull/40)

It also turns out there was another component affected

- [GitHub - discourse/discourse-custom-fields-on-groups-list · GitHub](https://github.com/discourse/discourse-custom-fields-on-groups-list)

I’ll close this topic next week in case there are more that pops up but I did a quick scan and it looks like we’re fine.

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [October 25, 2024, 8:53am UTC](https://meta.discourse.org/t/focus-shift-while-searching-the-user-directory/294359/11 "2024-10-25T08:53:26Z")

</div>

This topic was automatically closed after 7 days. New replies are no longer allowed.
