From b6e2985ac69221505bc6218792066d13ffffa1bb Mon Sep 17 00:00:00 2001 From: Simon Huber Date: Sat, 2 Mar 2019 18:16:55 +0100 Subject: [PATCH] Fix typo in edit-shortcut widget refresh - missing focus attr (#3815) * fix edit-shortcut widget refresh - missing focus attr * + typo fix. NOW it works --- core/modules/widgets/edit-shortcut.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/widgets/edit-shortcut.js b/core/modules/widgets/edit-shortcut.js index 49da6843b..b70328d5a 100644 --- a/core/modules/widgets/edit-shortcut.js +++ b/core/modules/widgets/edit-shortcut.js @@ -76,7 +76,7 @@ EditShortcutWidget.prototype.execute = function() { this.shortcutStyle = this.getAttribute("style"); this.shortcutTooltip = this.getAttribute("tooltip"); this.shortcutAriaLabel = this.getAttribute("aria-label"); - this.shorcutFocus = this.getAttribute("focus"); + this.shortcutFocus = this.getAttribute("focus"); }; /* @@ -138,7 +138,7 @@ Selectively refreshes the widget if needed. Returns true if the widget needed re */ EditShortcutWidget.prototype.refresh = function(changedTiddlers) { var changedAttributes = this.computeAttributes(); - if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.placeholder || changedAttributes["default"] || changedAttributes["class"] || changedAttributes.style || changedAttributes.tooltip || changedAttributes["aria-label"]) { + if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.placeholder || changedAttributes["default"] || changedAttributes["class"] || changedAttributes.style || changedAttributes.tooltip || changedAttributes["aria-label"] || changedAttributes.focus) { this.refreshSelf(); return true; } else if(changedTiddlers[this.shortcutTiddler]) {