From 00cce684129b68688e651c4acd99790d02e96fcd Mon Sep 17 00:00:00 2001 From: taggon Date: Tue, 30 Nov 2010 01:51:39 +0000 Subject: [PATCH] =?UTF-8?q?'=ED=98=95=EC=8B=9D'=ED=95=AD=EB=AA=A9=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EB=8B=A8=EC=B6=95=ED=82=A4=20=ED=88=B4=ED=8C=81?= =?UTF-8?q?=EC=9D=B4=20=EC=A0=95=ED=99=95=ED=9E=88=20=EB=82=98=ED=83=80?= =?UTF-8?q?=EB=82=98=EC=A7=80=20=EC=95=8A=EB=8D=98=20=EB=B2=84=EA=B7=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7941 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/editor/skins/xeed/js/xeed.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/editor/skins/xeed/js/xeed.js b/modules/editor/skins/xeed/js/xeed.js index c89ab889d..e0498c11f 100644 --- a/modules/editor/skins/xeed/js/xeed.js +++ b/modules/editor/skins/xeed/js/xeed.js @@ -530,11 +530,14 @@ Block = xe.createPlugin('BlockCommand', { function(){ $(this[_pn_]).removeClass('hover') } ) .each(function(){ - var $this = $(this); + var $this = $(this), num; if (!/(?:^|\s)h([1-7])(?:\s|$)/i.test($this.parent().attr('class'))) return true; - if (np && !np.indexOf('Mac')) $this.attr('title', 'CTRL+COMMAND+'+RegExp.$1); + + num = RegExp.$1; + if (np && !np.indexOf('Mac')) $this.attr('title', 'Ctrl+Command+'+num); + else $this.attr('title', 'Ctrl+'+num); - self.cast('REGISTER_COMMAND', [this, 'ctrl+'+RegExp.$1, 'EXEC_HEADING', [RegExp.$1]]); + self.cast('REGISTER_COMMAND', [this, 'ctrl+'+num, 'EXEC_HEADING', [num]]); }) .end();