keithamus / jwerty

⌨ Awesome handling of keyboard events
http://keithamus.github.io/jwerty
Other
1.21k stars 109 forks source link

Unbind doesn't work. #73

Open evpozdniakov opened 7 years ago

evpozdniakov commented 7 years ago

I suddenly discovered that unbind functionality doesn't work.

My code looks like that:

var k = jwerty.key('↑/↓/←/→/pgdown/pgup/home/end', callback);
...
k.unbind(); // actually, k is undefined because jwerty.key returns nothing

I tried to google the issue, but nobody complains...

sreejith-ms commented 7 years ago

It worked as expected. https://jsfiddle.net/sreejithms/4zdfzag9/

evpozdniakov commented 7 years ago

I see that it works as expected in jsfiddle, but at the same time...

image

I'll try to investigate what is wrong on my side.