bundles/org.eclipse.orion.client.editor/web/orion/editor/textView.js
function (mode) {
			var keyModes = this._keyModes;
			for (var i=0; i<keyModes.length; i++) {
				if (keyModes[i] === mode) {
					keyModes.splice(i, 1);
					break;
				}
			}
			//TODO: API needed for this
			if (mode._modeRemoved) {
				mode._modeRemoved();
			}
		}
function (mode) {
			var keyModes = this._keyModes;
			for (var i=0; i<keyModes.length; i++) {
				if (keyModes[i] === mode) {
					keyModes.splice(i, 1);
					break;
				}
			}
			//TODO: API needed for this
			if (mode._modeRemoved) {
				mode._modeRemoved();
			}
		}
function ( mode ) { var keyModes = this . _keyModes ; for ( var i = 0 ; i < keyModes . length ; i ++ ) { if ( keyModes [ i ] === mode ) { keyModes . splice ( i , 1 ) ; break ; } } //TODO: API needed for this if ( mode . _modeRemoved ) { mode . _modeRemoved ( ) ; } }
Removes a key mode from the text view.

@param {orion.editor.KeyMode} mode the key mode.
Removes a key mode from the text view .