removed the handled variable

because it serves no purpose here. That test isn't required in this context.
print-window-tiddler
jed 2015-11-16 10:48:25 +01:00
rodzic e55c5b0669
commit 848e351685
1 zmienionych plików z 1 dodań i 4 usunięć

Wyświetl plik

@ -42,10 +42,7 @@ KeyboardWidget.prototype.render = function(parent,nextSibling) {
// Add a keyboard event handler
domNode.addEventListener("keydown",function (event) {
if($tw.utils.checkKeyDescriptor(event,self.keyInfo)) {
var handled = false;
if(self.invokeActions(this,event)) {
handled = true;
}
self.invokeActions(this,event);
self.dispatchMessage(event);
event.preventDefault();
event.stopPropagation();