File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,8 @@ export default {
78
78
})
79
79
},
80
80
dataTypeTooltip () {
81
- return ' <span class="keyboard">Ctrl</span> + <i class="material-icons">mouse</i>: Collapse All<br><span class="keyboard">Shift</span> + <i class="material-icons">mouse</i>: Expand All'
81
+ let ctrlKey = navigator .platform === ' MacIntel' ? ' ⌘' : ' Ctrl'
82
+ return ` <span class="keyboard">${ ctrlKey} </span> + <i class="material-icons">mouse</i>: Collapse All<br><span class="keyboard">Shift</span> + <i class="material-icons">mouse</i>: Expand All`
82
83
}
83
84
},
84
85
methods: {
@@ -95,7 +96,7 @@ export default {
95
96
},
96
97
toggle (dataType , event = null ) {
97
98
if (event ) {
98
- if (event .ctrlKey ) {
99
+ if (event .ctrlKey || event . metaKey ) {
99
100
return this .setExpandToAll (false )
100
101
} else if (event .shiftKey ) {
101
102
return this .setExpandToAll (true )
You can’t perform that action at this time.
0 commit comments