mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-18 20:10:02 +00:00
Fix typo in edit-shortcut widget refresh - missing focus attr (#3815)
* fix edit-shortcut widget refresh - missing focus attr * + typo fix. NOW it works
This commit is contained in:
parent
87eab62b7e
commit
b6e2985ac6
@ -76,7 +76,7 @@ EditShortcutWidget.prototype.execute = function() {
|
|||||||
this.shortcutStyle = this.getAttribute("style");
|
this.shortcutStyle = this.getAttribute("style");
|
||||||
this.shortcutTooltip = this.getAttribute("tooltip");
|
this.shortcutTooltip = this.getAttribute("tooltip");
|
||||||
this.shortcutAriaLabel = this.getAttribute("aria-label");
|
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) {
|
EditShortcutWidget.prototype.refresh = function(changedTiddlers) {
|
||||||
var changedAttributes = this.computeAttributes();
|
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();
|
this.refreshSelf();
|
||||||
return true;
|
return true;
|
||||||
} else if(changedTiddlers[this.shortcutTiddler]) {
|
} else if(changedTiddlers[this.shortcutTiddler]) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user