bundles/org.eclipse.orion.client.ui/web/orion/commandRegistry.js
function(keyAssist) {
			var scopes = {};
			var binding;
			// see commands.js _processKey
			function execute(activeBinding) {
				return function() {
					Commands.executeBinding(activeBinding);
				};
			}
			
			var bindings = [];
			for (var aBinding in this._activeBindings) {
				binding = this._activeBindings[aBinding];
				if (binding && binding.keyBinding && binding.command && (binding.command.name || binding.command.tooltip)) {
					bindings.push(binding);
				}
			}
			bindings.sort(function (a, b) {
				var ta = a.command.name || a.command.tooltip;
				var tb = b.command.name || b.command.tooltip;
				return ta.localeCompare(tb);
			});
			for (var i=0; i<bindings.length; i++) {
				binding = bindings[i];
				// skip scopes and process at end
				if (binding.keyBinding.scopeName) {
					if (!scopes[binding.keyBinding.scopeName]) {
						scopes[binding.keyBinding.scopeName] = [];
					}
					scopes[binding.keyBinding.scopeName].push(binding);
				} else {
					keyAssist.createItem(binding.keyBinding, binding.command.name || binding.command.tooltip, binding.command.id, execute(binding));
				}
			}
			for (var scopedBinding in scopes) {
				if (scopes[scopedBinding].length && scopes[scopedBinding].length > 0) {
					keyAssist.createHeader(scopedBinding, lib.validId(scopedBinding) + "Scope"); //$NON-NLS-0$
					scopes[scopedBinding].forEach(function(binding) {
						keyAssist.createItem(binding.keyBinding, binding.command.name || binding.command.tooltip, binding.command.id, execute(binding));
					});
				}	
			}
		}
function(keyAssist) {
			var scopes = {};
			var binding;
			// see commands.js _processKey
			function execute(activeBinding) {
				return function() {
					Commands.executeBinding(activeBinding);
				};
			}
			
			var bindings = [];
			for (var aBinding in this._activeBindings) {
				binding = this._activeBindings[aBinding];
				if (binding && binding.keyBinding && binding.command && (binding.command.name || binding.command.tooltip)) {
					bindings.push(binding);
				}
			}
			bindings.sort(function (a, b) {
				var ta = a.command.name || a.command.tooltip;
				var tb = b.command.name || b.command.tooltip;
				return ta.localeCompare(tb);
			});
			for (var i=0; i<bindings.length; i++) {
				binding = bindings[i];
				// skip scopes and process at end
				if (binding.keyBinding.scopeName) {
					if (!scopes[binding.keyBinding.scopeName]) {
						scopes[binding.keyBinding.scopeName] = [];
					}
					scopes[binding.keyBinding.scopeName].push(binding);
				} else {
					keyAssist.createItem(binding.keyBinding, binding.command.name || binding.command.tooltip, binding.command.id, execute(binding));
				}
			}
			for (var scopedBinding in scopes) {
				if (scopes[scopedBinding].length && scopes[scopedBinding].length > 0) {
					keyAssist.createHeader(scopedBinding, lib.validId(scopedBinding) + "Scope"); //$NON-NLS-0$
					scopes[scopedBinding].forEach(function(binding) {
						keyAssist.createItem(binding.keyBinding, binding.command.name || binding.command.tooltip, binding.command.id, execute(binding));
					});
				}	
			}
		}
function ( keyAssist ) { var scopes = { } ; var binding ; // see commands.js _processKey function execute ( activeBinding ) { return function ( ) { Commands . executeBinding ( activeBinding ) ; } ; } var bindings = [ ] ; for ( var aBinding in this . _activeBindings ) { binding = this . _activeBindings [ aBinding ] ; if ( binding && binding . keyBinding && binding . command && ( binding . command . name || binding . command . tooltip ) ) { bindings . push ( binding ) ; } } bindings . sort ( function ( a , b ) { var ta = a . command . name || a . command . tooltip ; var tb = b . command . name || b . command . tooltip ; return ta . localeCompare ( tb ) ; } ) ; for ( var i = 0 ; i < bindings . length ; i ++ ) { binding = bindings [ i ] ; // skip scopes and process at end if ( binding . keyBinding . scopeName ) { if ( ! scopes [ binding . keyBinding . scopeName ] ) { scopes [ binding . keyBinding . scopeName ] = [ ] ; } scopes [ binding . keyBinding . scopeName ] . push ( binding ) ; } else { keyAssist . createItem ( binding . keyBinding , binding . command . name || binding . command . tooltip , binding . command . id , execute ( binding ) ) ; } } for ( var scopedBinding in scopes ) { if ( scopes [ scopedBinding ] . length && scopes [ scopedBinding ] . length > 0 ) { keyAssist . createHeader ( scopedBinding , lib . validId ( scopedBinding ) + "Scope" ) ; //$NON-NLS-0$ scopes [ scopedBinding ] . forEach ( function ( binding ) { keyAssist . createItem ( binding . keyBinding , binding . command . name || binding . command . tooltip , binding . command . id , execute ( binding ) ) ; } ) ; } } }
Show the keybindings that are registered with the command registry inside the specified target node.
@param {KeyAssistPanel} keyAssist the key assist panel
Show the keybindings that are registered with the command registry inside the specified target node .