mirror of
https://github.com/docker/docs.git
synced 2026-03-31 00:08:55 +07:00
Merge pull request #196 from kitematic/disable-backspace
Disable backspace
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user