Merge pull request #196 from kitematic/disable-backspace

Disable backspace
This commit is contained in:
Jeffrey Morgan 2015-02-23 11:46:44 -05:00
commit 6942d6790e
1 changed files with 7 additions and 0 deletions

View File

@ -49,6 +49,13 @@ bugsnag.beforeNotify = function(payload) {
var menu = Menu.buildFromTemplate(MenuTemplate);
Menu.setApplicationMenu(menu);
document.onkeydown = function (e) {
e = e || window.event;
if (e.keyCode === 8) {
e.preventDefault();
}
};
setInterval(function () {
metrics.track('app heartbeat');
}, 14400000);