From e669ec098fca778b88b9a71ec9131cc9817ae513 Mon Sep 17 00:00:00 2001 From: Simon Huber Date: Tue, 30 Jul 2019 14:47:56 +0200 Subject: [PATCH] Fix beyboard widget empty parameters (#4094) --- core/modules/widgets/keyboard.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/modules/widgets/keyboard.js b/core/modules/widgets/keyboard.js index c8cbb70a8..7611b3d61 100644 --- a/core/modules/widgets/keyboard.js +++ b/core/modules/widgets/keyboard.js @@ -73,13 +73,13 @@ Compute the internal state of the widget KeyboardWidget.prototype.execute = function() { var self = this; // Get attributes - this.actions = this.getAttribute("actions"); - this.message = this.getAttribute("message"); - this.param = this.getAttribute("param"); - this.key = this.getAttribute("key"); - this.tag = this.getAttribute("tag"); + this.actions = this.getAttribute("actions",""); + this.message = this.getAttribute("message",""); + this.param = this.getAttribute("param",""); + this.key = this.getAttribute("key",""); + this.tag = this.getAttribute("tag",""); 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) === "))") { this.shortcutTiddlers = []; var name = this.key.substring(2,this.key.length -2);