bundles/org.eclipse.orion.client.ui/web/orion/explorers/explorerNavHandler.js
function(e) {
			var currentGrid = this.getCurrentGrid(this._modelIterator.cursor());
			if(currentGrid){
				if(currentGrid.widget){
					if(typeof currentGrid.onClick === "function"){ //$NON-NLS-0$
						currentGrid.onClick();
					} else if(typeof currentGrid.widget.focus === "function"){ //$NON-NLS-0$
						currentGrid.widget.focus();
					}
				} else {
					var evt = document.createEvent("MouseEvents"); //$NON-NLS-0$
					evt.initMouseEvent("click", true, true, window, //$NON-NLS-0$
							0, 0, 0, 0, 0, this._ctrlKeyOn(e), false, false, false, 0, null);
					currentGrid.domNode.dispatchEvent(evt);
				}
				return;
			}
			
			var curModel = this._modelIterator.cursor();
			if(!curModel){
				return;
			}
			
			if(this.explorer.renderer.getRowActionElement){
				var div = this.explorer.renderer.getRowActionElement(this.model.getId(curModel));
				if(div.href){
					if(this._ctrlKeyOn(e)){
						window.open(urlModifier(div.href));
					} else {
						window.location.href = urlModifier(div.href);
					}
				}
			}
			if(this.explorer.renderer.performRowAction){
				this.explorer.renderer.performRowAction(e, curModel);
				e.preventDefault();
				return false;
			}
		}
function(e) {
			var currentGrid = this.getCurrentGrid(this._modelIterator.cursor());
			if(currentGrid){
				if(currentGrid.widget){
					if(typeof currentGrid.onClick === "function"){ //$NON-NLS-0$
						currentGrid.onClick();
					} else if(typeof currentGrid.widget.focus === "function"){ //$NON-NLS-0$
						currentGrid.widget.focus();
					}
				} else {
					var evt = document.createEvent("MouseEvents"); //$NON-NLS-0$
					evt.initMouseEvent("click", true, true, window, //$NON-NLS-0$
							0, 0, 0, 0, 0, this._ctrlKeyOn(e), false, false, false, 0, null);
					currentGrid.domNode.dispatchEvent(evt);
				}
				return;
			}
			
			var curModel = this._modelIterator.cursor();
			if(!curModel){
				return;
			}
			
			if(this.explorer.renderer.getRowActionElement){
				var div = this.explorer.renderer.getRowActionElement(this.model.getId(curModel));
				if(div.href){
					if(this._ctrlKeyOn(e)){
						window.open(urlModifier(div.href));
					} else {
						window.location.href = urlModifier(div.href);
					}
				}
			}
			if(this.explorer.renderer.performRowAction){
				this.explorer.renderer.performRowAction(e, curModel);
				e.preventDefault();
				return false;
			}
		}
function ( e ) { var currentGrid = this . getCurrentGrid ( this . _modelIterator . cursor ( ) ) ; if ( currentGrid ) { if ( currentGrid . widget ) { if ( typeof currentGrid . onClick === "function" ) { //$NON-NLS-0$ currentGrid . onClick ( ) ; } else if ( typeof currentGrid . widget . focus === "function" ) { //$NON-NLS-0$ currentGrid . widget . focus ( ) ; } } else { var evt = document . createEvent ( "MouseEvents" ) ; //$NON-NLS-0$ evt . initMouseEvent ( "click" , true , true , window , //$NON-NLS-0$ 0 , 0 , 0 , 0 , 0 , this . _ctrlKeyOn ( e ) , false , false , false , 0 , null ) ; currentGrid . domNode . dispatchEvent ( evt ) ; } return ; } var curModel = this . _modelIterator . cursor ( ) ; if ( ! curModel ) { return ; } if ( this . explorer . renderer . getRowActionElement ) { var div = this . explorer . renderer . getRowActionElement ( this . model . getId ( curModel ) ) ; if ( div . href ) { if ( this . _ctrlKeyOn ( e ) ) { window . open ( urlModifier ( div . href ) ) ; } else { window . location . href = urlModifier ( div . href ) ; } } } if ( this . explorer . renderer . performRowAction ) { this . explorer . renderer . performRowAction ( e , curModel ) ; e . preventDefault ( ) ; return false ; } }
Enter key simulates a href call if the current row has an href link rendered. The render has to provide the getRowActionElement function that returns the href DIV.
Enter key simulates a href call if the current row has an href link rendered . The render has to provide the getRowActionElement function that returns the href DIV .