New Key Down event catching
This commit is contained in:
@@ -23,6 +23,9 @@ function Spot(asGlobals)
|
|||||||
|
|
||||||
self.resetTmpFunctions();
|
self.resetTmpFunctions();
|
||||||
|
|
||||||
|
//On Key down
|
||||||
|
$('html').on('keydown', function(oEvent){self.onKeydown(oEvent);});
|
||||||
|
|
||||||
//on window resize
|
//on window resize
|
||||||
$(window).on('resize', function(){self.onResize();});
|
$(window).on('resize', function(){self.onResize();});
|
||||||
|
|
||||||
@@ -169,6 +172,7 @@ function Spot(asGlobals)
|
|||||||
self.onQuitPage = function(){return true};
|
self.onQuitPage = function(){return true};
|
||||||
self.onResize = function(){};
|
self.onResize = function(){};
|
||||||
self.onFeedback = function(sType, sMsg){feedback(sType, sMsg);};
|
self.onFeedback = function(sType, sMsg){feedback(sType, sMsg);};
|
||||||
|
self.onKeydown = function(oEvent){};
|
||||||
};
|
};
|
||||||
|
|
||||||
this.switchPage = function(asHash)
|
this.switchPage = function(asHash)
|
||||||
|
|||||||
Reference in New Issue
Block a user