Browse Source

讓我們可以打開開發人員工具

tags/v1.0
Pin Lin 1 year ago
parent
commit
33c6442944
Signed by: Pin Lin <moneycat711@gmail.com> GPG Key ID: AA25245559047A94
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      src/KeyBoardManager.js

+ 5
- 2
src/KeyBoardManager.js View File

@@ -19,10 +19,13 @@ var Framework = (function (Framework) {
if (['Windows', 'R', 'F5'].includes(keyCode)) {
return;
}
else {
e.preventDefault();
// 讓我們可以打開開發人員工具
if (['Windows', 'Alt', 'I', 'F12'].includes(keyCode)) {
return;
}

e.preventDefault();

if(!Framework.Util.isUndefined(_keydownList[keyCode])) {
var ele = _keydownList[keyCode];
ele.lastTimeDiff = e.timeStamp - ele.firstTimeStamp;

Loading…
Cancel
Save