AnitaTang / js-hotkeys

Automatically exported from code.google.com/p/js-hotkeys
0 stars 0 forks source link

unable to unbind: Alt+s, Ctrl+s, Alt+w, Ctrl+w #45

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
example code:

var shortcut = ['Alt+s','Ctrl+s','Alt+w','Ctrl+w']; 
for (var i in shortcut) {
  if (shortcut.hasOwnProperty(i)) {
    $(document).unbind('keydown',shortcut[i], this.send);
  }
}

jquery.hotkeys-0.7.8.js

binding of those shortcuts works.
unbinding of return (as an example) works just fine.
I didn't check if other Alt+ Ctrl+ combinations have same issues.

Tested under Firefox 3, Google Chrome, IE 7, Midori,
no errors returned by debuggers.

Original issue reported on code.google.com by der...@gmail.com on 19 Feb 2009 at 10:10

GoogleCodeExporter commented 8 years ago
look at 
http://github.com/tzuryby/jquery.hotkeys/blob/837ccdef04b88a5c743698e7b7ce5eaa40
b0c2ba/test-static-07.html

I made this as an example for bind/unbind

Original comment by Afro.Sys...@gmail.com on 3 May 2009 at 10:05