New Key Down event catching

This commit is contained in:
2020-03-27 18:09:09 +01:00
parent 85630d2553
commit dae7a01221

View File

@@ -23,6 +23,9 @@ function Spot(asGlobals)
self.resetTmpFunctions();
//On Key down
$('html').on('keydown', function(oEvent){self.onKeydown(oEvent);});
//on window resize
$(window).on('resize', function(){self.onResize();});
@@ -169,6 +172,7 @@ function Spot(asGlobals)
self.onQuitPage = function(){return true};
self.onResize = function(){};
self.onFeedback = function(sType, sMsg){feedback(sType, sMsg);};
self.onKeydown = function(oEvent){};
};
this.switchPage = function(asHash)