import {Shortcut} from '@grid/core/shortcut/shortcut';

ArrayEdit.$inject = ['$scope', '$element'];

export default function ArrayEdit($scope, $element) {
	this.cell = () => $scope.$editor || $scope.$view.edit.cell;
	this.text = '';

	this.keydown = e => {
		const code = Shortcut.translate(e);
		if (code === 'enter') {
			if (this.text && this.text.length) {
				e.stopPropagation();
			}
		}
	};
}
@@ -74,28 +74,8 @@
  = %5B
-'$scope', '$element'
 %5D;%0A%0A
@@ -112,88 +112,11 @@
 dit(
-$scope, $element) %7B%0A%09this.cell = () =%3E $scope.$editor %7C%7C $scope.$view.edit.cell;
+) %7B
 %0A%09th

remove redundant