File tree 2 files changed +11
-9
lines changed
packages/app-frontend/src 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -86,14 +86,16 @@ export default {
86
86
methods: {
87
87
toggle (dataType , currentExpanded , event = null ) {
88
88
if (event ) {
89
- if (event .ctrlKey || event .metaKey ) {
90
- this .setExpandToAll (false )
91
- this .$emit (' collapse-all' )
92
- return
93
- } else if (event .shiftKey ) {
94
- this .setExpandToAll (true )
95
- this .$emit (' expand-all' )
96
- return
89
+ if (event .shiftKey ) {
90
+ if (currentExpanded) {
91
+ this .setExpandToAll (false )
92
+ this .$emit (' collapse-all' )
93
+ return
94
+ } else {
95
+ this .setExpandToAll (true )
96
+ this .$emit (' expand-all' )
97
+ return
98
+ }
97
99
}
98
100
}
99
101
Vue .set (this .expandedState , dataType, ! currentExpanded)
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export default {
24
24
} ,
25
25
StateInspector : {
26
26
dataType : {
27
- tooltip : '[[{{keys.ctrl}}]] + <<mouse>>: Collapse All<br>[[{{keys. shift}}]] + <<mouse>>: Expand All' ,
27
+ tooltip : '[[{{keys.shift}}]] + <<mouse>>: Expand/Collapse All' ,
28
28
} ,
29
29
filter : {
30
30
tooltip : '[[{{keys.alt}}]] + [[D]] Filter state by name' ,
You can’t perform that action at this time.
0 commit comments