'형식'항목에서 단축키 툴팁이 정확히 나타나지 않던 버그 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7941 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2010-11-30 01:51:39 +00:00
parent f281321110
commit 00cce68412

View file

@ -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();