Skip to content

Commit

Permalink
disabled b2g restarting when pressing F6
Browse files Browse the repository at this point in the history
Nguyen Thanh Trung committed Mar 28, 2014

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent c886a45 commit 3bc2ffd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions apps/system/js/bootstrap.js
Original file line number Diff line number Diff line change
@@ -96,16 +96,16 @@ window.storage = new Storage();
/* === Shortcuts === */
/* For hardware key handling that doesn't belong to anywhere */
var Shortcuts = {
init: function rm_init() {
window.addEventListener('keyup', this);
},
// init: function rm_init() {
// window.addEventListener('keyup', this);
// },

handleEvent: function rm_handleEvent(evt) {
if (!ScreenManager.screenEnabled || evt.keyCode !== evt.DOM_VK_F6)
return;
// handleEvent: function rm_handleEvent(evt) {
// if (!ScreenManager.screenEnabled || evt.keyCode !== evt.DOM_VK_F6)
// return;

document.location.reload();
}
// document.location.reload();
// }
};

/* === Localization === */

0 comments on commit 3bc2ffd

Please sign in to comment.