mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 23:29:57 +09:00
'형식'항목에서 단축키 툴팁이 정확히 나타나지 않던 버그 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7941 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f281321110
commit
00cce68412
1 changed files with 6 additions and 3 deletions
|
|
@ -530,11 +530,14 @@ Block = xe.createPlugin('BlockCommand', {
|
||||||
function(){ $(this[_pn_]).removeClass('hover') }
|
function(){ $(this[_pn_]).removeClass('hover') }
|
||||||
)
|
)
|
||||||
.each(function(){
|
.each(function(){
|
||||||
var $this = $(this);
|
var $this = $(this), num;
|
||||||
if (!/(?:^|\s)h([1-7])(?:\s|$)/i.test($this.parent().attr('class'))) return true;
|
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);
|
|
||||||
|
|
||||||
self.cast('REGISTER_COMMAND', [this, 'ctrl+'+RegExp.$1, 'EXEC_HEADING', [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+'+num, 'EXEC_HEADING', [num]]);
|
||||||
})
|
})
|
||||||
.end();
|
.end();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue