mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
avoid sanitization for cheatsheet keys
This commit is contained in:
parent
b8fed60fa6
commit
f74b081fad
@ -140,7 +140,8 @@
|
|||||||
title : title,
|
title : title,
|
||||||
icon : descriptor.iconClass,
|
icon : descriptor.iconClass,
|
||||||
description : description,
|
description : description,
|
||||||
key : this.formatKey_(shortcut.getDisplayKey()),
|
// Avoid sanitization
|
||||||
|
'!key!' : this.formatKey_(shortcut.getDisplayKey()),
|
||||||
className : shortcutClasses.join(' ')
|
className : shortcutClasses.join(' ')
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
<script type="text/template" id="cheatsheet-shortcut-template">
|
<script type="text/template" id="cheatsheet-shortcut-template">
|
||||||
<li class="cheatsheet-shortcut {{className}}" data-shortcut-id="{{id}}">
|
<li class="cheatsheet-shortcut {{className}}" data-shortcut-id="{{id}}">
|
||||||
<div class="cheatsheet-icon {{icon}}"></div>
|
<div class="cheatsheet-icon {{icon}}"></div>
|
||||||
<span class="cheatsheet-key" rel="tooltip" data-placement="top" title="{{title}}">{{key}}</span>
|
<span class="cheatsheet-key" rel="tooltip" data-placement="top" title="{{title}}">{{!key!}}</span>
|
||||||
<span class="cheatsheet-description">{{description}}</span>
|
<span class="cheatsheet-description">{{description}}</span>
|
||||||
</li>
|
</li>
|
||||||
</script>
|
</script>
|
Loading…
Reference in New Issue
Block a user