mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-06-28 16:23:15 +00:00
Fix beyboard widget empty parameters (#4094)
This commit is contained in:
parent
269fa5313f
commit
e669ec098f
|
@ -73,13 +73,13 @@ Compute the internal state of the widget
|
||||||
KeyboardWidget.prototype.execute = function() {
|
KeyboardWidget.prototype.execute = function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
// Get attributes
|
// Get attributes
|
||||||
this.actions = this.getAttribute("actions");
|
this.actions = this.getAttribute("actions","");
|
||||||
this.message = this.getAttribute("message");
|
this.message = this.getAttribute("message","");
|
||||||
this.param = this.getAttribute("param");
|
this.param = this.getAttribute("param","");
|
||||||
this.key = this.getAttribute("key");
|
this.key = this.getAttribute("key","");
|
||||||
this.tag = this.getAttribute("tag");
|
this.tag = this.getAttribute("tag","");
|
||||||
this.keyInfoArray = $tw.keyboardManager.parseKeyDescriptors(this.key);
|
this.keyInfoArray = $tw.keyboardManager.parseKeyDescriptors(this.key);
|
||||||
this["class"] = this.getAttribute("class");
|
this["class"] = this.getAttribute("class","");
|
||||||
if(this.key.substr(0,2) === "((" && this.key.substr(-2,2) === "))") {
|
if(this.key.substr(0,2) === "((" && this.key.substr(-2,2) === "))") {
|
||||||
this.shortcutTiddlers = [];
|
this.shortcutTiddlers = [];
|
||||||
var name = this.key.substring(2,this.key.length -2);
|
var name = this.key.substring(2,this.key.length -2);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user