Commit d41f4f7
committed
Improve QuickSearch behavior in OutlineView, TreeTable, and ListView.
Details:
* For OutlineView and TreeTable, avoid changing the selection when pressing Escape. (TreeView already has the desired behavior.)
* Add F3 and Ctrl/Command+G as alternative keystrokes for next-match (and Shift variants for previous-match).
* Have QuickSearch select all when invoking Ctrl+F or alternative shortcuts while the search bar is already open.
* Make the ListView's quick search box look more modern, and consistent with that of OutlineView/TreeView. Use the magnifying glass icon instead of the text 'Search', and use a flat border style.
* Add more alternative find-next/previous keystrokes for ListView, like we did in QuickSearch (which is used by TreeView and OutlineView but not ListView). On Ctrl+F or F3, open the search bar, or select-all the existing text if it is already open.
* In OutlineView and TreeTable, avoid backtracking to the first hit if backspace is pressed on a still-matching selection.1 parent 4bc8045 commit d41f4f7
File tree
6 files changed
+115
-26
lines changed- platform
- o.n.swing.laf.flatlaf/src/org/netbeans/swing/laf/flatlaf
- openide.awt/src/org/openide/awt
- openide.explorer
- nbproject
- src/org/openide/explorer/view
6 files changed
+115
-26
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| |||
Lines changed: 47 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
288 | 291 | | |
289 | 292 | | |
290 | 293 | | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
295 | 300 | | |
296 | 301 | | |
297 | 302 | | |
| |||
354 | 359 | | |
355 | 360 | | |
356 | 361 | | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
357 | 379 | | |
358 | 380 | | |
359 | 381 | | |
| |||
678 | 700 | | |
679 | 701 | | |
680 | 702 | | |
681 | | - | |
| 703 | + | |
682 | 704 | | |
683 | 705 | | |
684 | 706 | | |
| |||
707 | 729 | | |
708 | 730 | | |
709 | 731 | | |
| 732 | + | |
710 | 733 | | |
711 | 734 | | |
712 | | - | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
713 | 740 | | |
714 | 741 | | |
715 | 742 | | |
| |||
748 | 775 | | |
749 | 776 | | |
750 | 777 | | |
| 778 | + | |
751 | 779 | | |
752 | 780 | | |
753 | 781 | | |
| |||
763 | 791 | | |
764 | 792 | | |
765 | 793 | | |
766 | | - | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
767 | 799 | | |
768 | 800 | | |
769 | 801 | | |
770 | 802 | | |
771 | | - | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
772 | 810 | | |
773 | 811 | | |
774 | 812 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
28 | 37 | | |
29 | 38 | | |
30 | 39 | | |
| |||
Lines changed: 38 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| |||
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| 60 | + | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | | - | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| |||
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
115 | 124 | | |
116 | 125 | | |
117 | 126 | | |
| |||
1035 | 1044 | | |
1036 | 1045 | | |
1037 | 1046 | | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
1038 | 1054 | | |
1039 | 1055 | | |
1040 | 1056 | | |
| |||
1108 | 1124 | | |
1109 | 1125 | | |
1110 | 1126 | | |
1111 | | - | |
| 1127 | + | |
1112 | 1128 | | |
1113 | 1129 | | |
1114 | 1130 | | |
1115 | 1131 | | |
1116 | | - | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
1117 | 1138 | | |
1118 | 1139 | | |
1119 | 1140 | | |
| |||
1216 | 1237 | | |
1217 | 1238 | | |
1218 | 1239 | | |
| 1240 | + | |
1219 | 1241 | | |
| 1242 | + | |
1220 | 1243 | | |
1221 | 1244 | | |
1222 | 1245 | | |
1223 | 1246 | | |
1224 | | - | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
1225 | 1254 | | |
1226 | 1255 | | |
1227 | 1256 | | |
1228 | 1257 | | |
1229 | 1258 | | |
1230 | 1259 | | |
1231 | | - | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
1232 | 1264 | | |
1233 | 1265 | | |
1234 | 1266 | | |
| |||
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
| |||
152 | 154 | | |
153 | 155 | | |
154 | 156 | | |
| 157 | + | |
| 158 | + | |
155 | 159 | | |
156 | 160 | | |
157 | 161 | | |
158 | 162 | | |
159 | 163 | | |
160 | | - | |
161 | | - | |
162 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
163 | 169 | | |
164 | 170 | | |
165 | 171 | | |
| |||
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1957 | 1957 | | |
1958 | 1958 | | |
1959 | 1959 | | |
1960 | | - | |
1961 | | - | |
1962 | | - | |
1963 | | - | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
1964 | 1967 | | |
1965 | | - | |
1966 | 1968 | | |
1967 | 1969 | | |
1968 | 1970 | | |
| |||
2096 | 2098 | | |
2097 | 2099 | | |
2098 | 2100 | | |
2099 | | - | |
| 2101 | + | |
2100 | 2102 | | |
2101 | 2103 | | |
2102 | 2104 | | |
| |||
0 commit comments