Language: JavaScript
Label: safe
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
g.dialogs||0==g.dialogs.length)};y.isControlDown=function(R){return mxEvent.isControlDown(R)||mxClient.IS_MAC&&R.metaKey};var E=null,L={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},T=y.getFunction;mxKeyHandler.prototype.getFunction=function(R){if(n.isEnabled()){if(mxEvent.isShiftDown(R)&&mxEvent.isAltDown(R)){var W=g.actions.get(g.altShiftActions[R.keyCode]);if(null!=W)return W.funct}if(null!=L[R.keyCode]&&!n.isSelectionEmpty())if(!this.isControlDown(R)&&
mxEvent.isShiftDown(R)&&mxEvent.isAltDown(R)){if(n.model.isVertex(n.getSelectionCell()))return function(){var d=n.connectVertex(n.getSelectionCell(),L[R.keyCode],n.defaultEdgeLength,R,!0);null!=d&&0<d.length&&(1==d.length&&n.model.isEdge(d[0])?n.setSelectionCell(n.model.getTerminal(d[0],!1)):n.setSelectionCell(d[d.length-1]),n.scrollCellToVisible(n.getSelectionCell()),null!=g.hoverIcons&&g.hoverIcons.update(n.view.getState(n.getSelectionCell())))}}else return this.isControlDown(R)?function(){e(R.keyCode,
mxEvent.isShiftDown(R)?n.gridSize:null,!0)}:function(){e(R.keyCode,mxEvent.isShiftDown(R)?n.gridSize:null)}}return T.apply(this,arguments)};y.bindAction=mxUtils.bind(this,function(R,W,d,f){var k=this.actions.get(d);null!=k&&(d=function(){k.isEnabled()&&k.funct.apply(this,arguments)},W?f?y.bindControlShiftKey(R,d):y.bindControlKey(R,d):f?y.bindShiftKey(R,d):y.bindKey(R,d))});var G=this,M=y.escape;y.escape=function(R){M.apply(this,arguments)};y.enter=function(){};y.bindControlShiftKey(36,function(){n.exitGroup()});