Skip to content

Commit ea53905

Browse files
committed
Merge pull request summernote#1733 from JoniJnm/patch-1
Don't show shortcut text if it's disabled
2 parents 343677f + 1f83d7f commit ea53905

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/js/bs3/module/Buttons.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ define([
1515
var invertedKeyMap = func.invertObject(options.keyMap[agent.isMac ? 'mac' : 'pc']);
1616

1717
var representShortcut = this.representShortcut = function (editorMethod) {
18+
if (!options.shortcuts) {
19+
return '';
20+
}
1821
var shortcut = invertedKeyMap[editorMethod];
1922
if (agent.isMac) {
2023
shortcut = shortcut.replace('CMD', '⌘').replace('SHIFT', '⇧');

0 commit comments

Comments
 (0)