0
// keyboard down window check.
window.addEventListener("keydown", function(event) {
onKeyDownHandler(event);
}, false);
function onKeyDownHandler(e)
{
e.preventDefault();
var focus_id = e.target.id;
switch (e.keyCode) {
case 46: // delete
//delete item
alert("why i cant get this work on mac?");
break;
}
}
爲什麼我的按鍵不能在mac上工作?任何人都可以告訴我如何使按鍵刪除工作在Mac?如何在macbook上捕獲刪除按鍵