From 49c485dc5d12584154637d466ddefd2d9adc7c80 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 20 Jun 2017 10:11:36 +0800 Subject: [PATCH] =?UTF-8?q?codeeditor=E5=8A=A0=E4=B8=AAfocus=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/editor/editor.code.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/base/single/editor/editor.code.js b/src/base/single/editor/editor.code.js index 2852399c0..997d57252 100644 --- a/src/base/single/editor/editor.code.js +++ b/src/base/single/editor/editor.code.js @@ -141,6 +141,10 @@ BI.CodeEditor = BI.inherit(BI.Single, { focus: function () { this.editor.focus(); }, + + blur: function () { + this.editor.getInputField().blur(); + }, setStyle: function (style) { this.style = style;