Commit c626e77
outline_panel: Remove toggle expanded behavior from OpenSelectedEntry (#42214)
Fixed outline panel space key behavior by removing duplicate toggle call
The `open_selected_entry` function in `outline_panel.rs` was incorrectly
calling `self.toggle_expanded(&selected_entry, window, cx)` in addition
to its primary logic, causing the space key to both open/close entries
AND toggle their expanded state. Removed the redundant `toggle_expanded`
call to achieve the intended behavior.
Closes #41711
Release Notes:
- Fixed issue with the outline panel where pressing space would cause an
open selected entry to collapse and cause a closed selected entry to
open.
---------
Co-authored-by: Smit Barmase <[email protected]>1 parent fa0c750 commit c626e77
1 file changed
+6
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
986 | 986 | | |
987 | 987 | | |
988 | 988 | | |
989 | | - | |
990 | 989 | | |
991 | 990 | | |
992 | 991 | | |
| |||
5845 | 5844 | | |
5846 | 5845 | | |
5847 | 5846 | | |
5848 | | - | |
| 5847 | + | |
5849 | 5848 | | |
5850 | 5849 | | |
5851 | 5850 | | |
| |||
5951 | 5950 | | |
5952 | 5951 | | |
5953 | 5952 | | |
5954 | | - | |
| 5953 | + | |
5955 | 5954 | | |
5956 | 5955 | | |
5957 | 5956 | | |
| |||
5977 | 5976 | | |
5978 | 5977 | | |
5979 | 5978 | | |
5980 | | - | |
| 5979 | + | |
5981 | 5980 | | |
5982 | 5981 | | |
5983 | 5982 | | |
| |||
6000 | 5999 | | |
6001 | 6000 | | |
6002 | 6001 | | |
6003 | | - | |
| 6002 | + | |
6004 | 6003 | | |
6005 | 6004 | | |
6006 | 6005 | | |
| |||
7532 | 7531 | | |
7533 | 7532 | | |
7534 | 7533 | | |
7535 | | - | |
| 7534 | + | |
7536 | 7535 | | |
7537 | 7536 | | |
7538 | 7537 | | |
| |||
7564 | 7563 | | |
7565 | 7564 | | |
7566 | 7565 | | |
7567 | | - | |
| 7566 | + | |
7568 | 7567 | | |
7569 | 7568 | | |
7570 | 7569 | | |
| |||
0 commit comments