# Refining Arrow Key Behavior in Anki’s Sidebar Tree

**URL:** <https://forums.ankiweb.net/t/refining-arrow-key-behavior-in-anki-s-sidebar-tree/63850>\
**Category:** Suggestions\
**Created:** [July 11, 2025, 2:46pm UTC](https://forums.ankiweb.net/t/refining-arrow-key-behavior-in-anki-s-sidebar-tree/63850 "2025-07-11T14:46:39Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajaberi](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@ajaberi](https://forums.ankiweb.net/u/ajaberi)\
**Post date:** [July 11, 2025, 2:46pm UTC](https://forums.ankiweb.net/t/refining-arrow-key-behavior-in-anki-s-sidebar-tree/63850/1 "2025-07-11T14:46:39Z")

</div>

🧭 **Suggestion: Improve Arrow Key Navigation in the Anki Browser Sidebar**

Thank you for your valuable work on developing and improving Anki.

Currently, in the Anki _Browse_ sidebar, using the up/down arrow keys (↑ ↓) navigates through **all expanded items** , regardless of their depth or level in the tree structure. This behavior can make it difficult and time-consuming to move through large, deeply nested trees — especially when a user simply wants to move between items on the **same level**.

Take a look at the image:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/9/6/96edffb8ac5bebe50a3eb40e2e7c7d82b564be0a.png)

Suppose a user wants to navigate using only the arrow keys from **Saved Searches** to **Basic** (which is a sub-item under **Note Types** ). In the current behavior, the user must traverse **all visible branches and sub-branches** in between.  
This is because the up/down arrows move linearly through all visible entries, rather than staying within a single column or hierarchy level.  
However, **moving between a parent and its children (or vice versa)** should be handled by the **right/left arrow keys** (→ ←), not up/down.

📌 _The related screenshot will be added later._

🔧 **Proposed Behavior:**  
We suggest adjusting the navigation behavior so that:

- The **up/down arrow keys** only move between items on the **same level**.
- Moving **into or out of sub-levels** (i.e., expanding into children or collapsing to a parent) should be handled only via the **right/left arrow keys**.

✅ **Benefits of This Change:**

- Navigation between items will become simpler, faster, and more intuitive.
- User experience will improve significantly when working with complex hierarchical structures.
- The interface will feel **more natural and predictable** , as the up/down keys would move **vertically within the same level** , rather than diagonally or across tree depths.

---

<div class="post-metadata">

**Author:** ![sorata](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/sorata/32/34115_2.png) [@sorata](https://forums.ankiweb.net/u/sorata)\
**Post date:** [July 11, 2025, 2:54pm UTC](https://forums.ankiweb.net/t/refining-arrow-key-behavior-in-anki-s-sidebar-tree/63850/2 "2025-07-11T14:54:01Z")

</div>

Linking to the add-on:

[https://ankiweb.net/shared/info/1467361433](https://ankiweb.net/shared/info/1467361433)

---

<div class="post-metadata">

**Author:** ![Keks](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/keks/32/20537_2.png) [@Keks](https://forums.ankiweb.net/u/Keks)\
**Post date:** [July 11, 2025, 3:09pm UTC](https://forums.ankiweb.net/t/refining-arrow-key-behavior-in-anki-s-sidebar-tree/63850/3 "2025-07-11T15:09:09Z")

</div>

What problem does this proposal solve?

And please don’t use AI to answer. I’ve read the “Benefits of This Change” paragraph, but I still don’t understand.

---

<div class="post-metadata">

**Author:** ![ajaberi](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@ajaberi](https://forums.ankiweb.net/u/ajaberi)\
**Post date:** [July 11, 2025, 3:16pm UTC](https://forums.ankiweb.net/t/refining-arrow-key-behavior-in-anki-s-sidebar-tree/63850/4 "2025-07-11T15:16:24Z")

</div>

Look at the picture. In the ideal case, to move from “Saved Searches” to “Basic” (under the Note Types ), you would only need to press the down arrow key 5 times.

However, with Anki’s current behavior, since the down arrow doesn’t move strictly between siblings but instead dives into all expanded branches, you have to press the down arrow more than 20 times to reach “Basic” from “Saved Searches.”

---

<div class="post-metadata">

**Author:** ![Anon\_0000](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Anon\_0000](https://forums.ankiweb.net/u/Anon_0000)\
**Post date:** [July 11, 2025, 3:17pm UTC](https://forums.ankiweb.net/t/refining-arrow-key-behavior-in-anki-s-sidebar-tree/63850/5 "2025-07-11T15:17:55Z")

</div>

But isn’t that normal behavior? I’d be quite confused if it behaved the way you propose.

---

<div class="post-metadata">

**Author:** ![Keks](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/keks/32/20537_2.png) [@Keks](https://forums.ankiweb.net/u/Keks)\
**Post date:** [July 11, 2025, 3:20pm UTC](https://forums.ankiweb.net/t/refining-arrow-key-behavior-in-anki-s-sidebar-tree/63850/6 "2025-07-11T15:20:25Z")

</div>

> [@ajaberi](#):
>
> Look at the picture. In the ideal case, to move from “Saved Searches” to “Basic” (under the Note Types ), you would only need to press the down arrow key 5 times.
> 
> However, with Anki’s current behavior, since the down arrow doesn’t move strictly between siblings but instead dives into all expanded branches, you have to press the down arrow more than 20 times to reach “Basic” from “Saved Searches.”

You can press the button without releasing it until you reach the desired point. Or collapse the sections using the left arrow.

---

<div class="post-metadata">

**Author:** ![ajaberi](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@ajaberi](https://forums.ankiweb.net/u/ajaberi)\
**Post date:** [July 11, 2025, 3:22pm UTC](https://forums.ankiweb.net/t/refining-arrow-key-behavior-in-anki-s-sidebar-tree/63850/7 "2025-07-11T15:22:58Z")

</div>

It’s confusing because you’re used to the current behavior.  
The suggested functionality is also implemented in the powerful Freeplane software. It’s the same in other tree-structured display software as far as I know.

---

<div class="post-metadata">

**Author:** ![ajaberi](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@ajaberi](https://forums.ankiweb.net/u/ajaberi)\
**Post date:** [July 11, 2025, 3:28pm UTC](https://forums.ankiweb.net/t/refining-arrow-key-behavior-in-anki-s-sidebar-tree/63850/8 "2025-07-11T15:28:12Z")

</div>

See this comment. [Idea: Change the behavior of the up and down arrow keys without losing any functionality with many benefits. · freeplane/freeplane · Discussion #2169 · GitHub](https://github.com/freeplane/freeplane/discussions/2169#discussioncomment-11704935)

There was a lot of discussion on that page.  
In the end, the current proposal I put forward was implemented.  
Of course, the discussions are very complicated.

---

<div class="post-metadata">

**Author:** ![Anon\_0000](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Anon\_0000](https://forums.ankiweb.net/u/Anon_0000)\
**Post date:** [July 11, 2025, 3:28pm UTC](https://forums.ankiweb.net/t/refining-arrow-key-behavior-in-anki-s-sidebar-tree/63850/9 "2025-07-11T15:28:59Z")

</div>

> [@ajaberi](#):
>
> It’s the same in other tree-structured display software as far as I know.

Every software (that includes tree views) I ever used uses the following:  
←: Jump to parent and hide children.  
→: Expand children or sub-children.  
↓ and ↑: Navigate between the elements.

> [@ajaberi](#):
>
> The suggested functionality is also implemented in the powerful Freeplane software.

I actually do have freeplane installed, though I rarely use it. I couldn’t find a classical tree view in freeplane though.

(In case you’re talking about the navigation in the mindmap: that’s not really a tree view like the actual tree view ui element. So them behaving differently is expected)

---

<div class="post-metadata">

**Author:** ![ajaberi](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@ajaberi](https://forums.ankiweb.net/u/ajaberi)\
**Post date:** [July 11, 2025, 3:37pm UTC](https://forums.ankiweb.net/t/refining-arrow-key-behavior-in-anki-s-sidebar-tree/63850/11 "2025-07-11T15:37:35Z")

</div>

> [@Keks](#):
>
> You can press the button without releasing it until you reach the desired point. Or collapse the sections using the left arrow.

I gave the following example:  
“Suppose a user wants to navigate using only the arrow keys from« Saved Searches to Basic (which is a sub-item under Note Types). In the current behavior, the user must traverse all visible branches and sub-branches in between.”  
Suppose the user does not want to collapse any of the sections

---

<div class="post-metadata">

**Author:** ![Keks](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/keks/32/20537_2.png) [@Keks](https://forums.ankiweb.net/u/Keks)\
**Post date:** [July 11, 2025, 3:42pm UTC](https://forums.ankiweb.net/t/refining-arrow-key-behavior-in-anki-s-sidebar-tree/63850/12 "2025-07-11T15:42:22Z")

</div>

Folding is just one of the examples that I have given.

---

<div class="post-metadata">

**Author:** ![Keks](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/keks/32/20537_2.png) [@Keks](https://forums.ankiweb.net/u/Keks)\
**Post date:** [July 11, 2025, 3:48pm UTC](https://forums.ankiweb.net/t/refining-arrow-key-behavior-in-anki-s-sidebar-tree/63850/13 "2025-07-11T15:48:14Z")

</div>

I experimented with the arrows and the ctrl, shift, alt keys. I noticed that Anki doesn’t use any. Instead of changing everything, why not add this functionality using these keys? For example, the desired behavior will occur when using ctrl + down arrow or ctrl + up arrow.

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [July 11, 2025, 9:00pm UTC](https://forums.ankiweb.net/t/refining-arrow-key-behavior-in-anki-s-sidebar-tree/63850/14 "2025-07-11T21:00:45Z")

</div>

You’re overlooking –

- Page up/down
- The sidebar search box – [Browsing - Anki Manual](https://docs.ankiweb.net/browsing.html#search-box)
- The mouse
- The fact that the right/left arrows are _already_ used for expanding/collapsing
