2014-02-10

[jQuery] 使用js-hotkeys讓網頁能偵測hotkey

請參考
https://code.google.com/p/js-hotkeys/

https://github.com/jeresig/jquery.hotkeys

使用上我的目的在於block ctrl+L 這個hotkey

$(document).bind('keydown', 'ctrl+l', function(e) {
  e.stopPropagation();  
  e.preventDefault();
  e.returnValue = false; 
  e.keyCode = 0;
 });



0 意見: