[VarDumper] Changed tooltip to expand-all keybinding in OS X
Expand all keybinding is Cmd+click in OS X
This commit is contained in:
parent
dc296cc951
commit
88093623ea
@ -116,6 +116,7 @@ Sfdump = window.Sfdump || (function (doc) {
|
||||
var refStyle = doc.createElement('style'),
|
||||
rxEsc = /([.*+?^${}()|\[\]\/\\])/g,
|
||||
idRx = /\bsf-dump-\d+-ref[012]\w+\b/,
|
||||
keyHint = 0 <= navigator.platform.toUpperCase().indexOf('MAC') ? 'Cmd' : 'Ctrl',
|
||||
addEventListener = function (e, n, cb) {
|
||||
e.addEventListener(n, cb, false);
|
||||
};
|
||||
@ -255,7 +256,7 @@ return function (root) {
|
||||
} else {
|
||||
a.innerHTML += ' ';
|
||||
}
|
||||
a.title = (a.title ? a.title+'\n' : '')+'[Ctrl+click] Expand all children';
|
||||
a.title = (a.title ? a.title+'\n[' : '[')+keyHint+'+click] Expand all children';
|
||||
a.innerHTML += '<span>▼</span>';
|
||||
a.className += ' sf-dump-toggle';
|
||||
if ('sf-dump' != elt.parentNode.className) {
|
||||
|
Reference in New Issue
Block a user