Merge pull request #75 from ysykzheng/master

fix custom action shortcut not working
pull/83/merge
Jeroen Akkerman 5 лет назад коммит произвёл GitHub
Родитель aa7ea0b762 98ab3513a6
Коммит 8e46c9f3c9
Не найден ключ, соответствующий данной подписи
Идентификатор GPG ключа: 4AEE18F83AFDEB23

@ -122,6 +122,11 @@ function createToolbarButton(options, enableTooltips, shortcuts) {
el.setAttribute('type', 'button');
enableTooltips = (enableTooltips == undefined) ? true : enableTooltips;
// Properly hande custom shortcuts
if( options.name && options.name in shortcuts ){
bindings[options.name] = options.action;
}
if (options.title && enableTooltips) {
el.title = createTooltip(options.title, options.action, shortcuts);

Загрузка…
Отмена
Сохранить