mirror of https://github.com/docker/docs.git
Merge pull request #196 from kitematic/disable-backspace
Disable backspace
This commit is contained in:
commit
6942d6790e
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue