Added a beep sound

This commit is contained in:
2016-03-18 03:35:45 +08:00
parent db922421be
commit acb5d72d89
6 changed files with 303 additions and 46 deletions
+6 -1
View File
@@ -53,7 +53,12 @@
var _self = this;
stage.addEventListener( "KeyDown", KeyHandler( this, VimControls ) );
var controls = new VimControls();
stage.addEventListener(
"KeyDown"
, KeyHandler( this, controls.handler.bind( controls ) )
);
stage.addEventListener( "Focus", function() { _self.__active = true; } );
stage.addEventListener( "Blur", function() { _self.__active = false; } );