Update typingsound.plugin.js

This commit is contained in:
Jiiks 2016-02-23 08:49:09 +02:00
parent 1ea96f9da8
commit b0cfc3bb00
1 changed files with 2 additions and 2 deletions

View File

@ -27,9 +27,9 @@ typingSoundPlugin.prototype.start = function() {
});
$(document).on("keydown.ts", function(e) {
self.bs.trigger("pause");
self.bs.prop("currentTime", 0);
if(e.keyCode == 8) {
self.bs.trigger("pause");
self.bs.prop("currentTime", 0);
self.bs.trigger("play");
return;
}