Open GoogleCodeExporter opened 8 years ago
that's great.
The only problem with your solution is that 'combi' holds the keyCode (of 'x'
instead
of the combination (e.g. 'ctrl+x').
I'll see how to merge this anyway.
thanks
Original comment by Afro.Sys...@gmail.com
on 3 May 2009 at 7:59
yeah, my code is for test only, I think you can perfect it.
I like "hotkeys", thus I thank you very much!
Original comment by jessige...@gmail.com
on 3 May 2009 at 11:59
[deleted comment]
Try This:
<html>
<head>
<script src="jquery-1.3.2.min.js"></script>
<script src="jquery.hotkeys.js"></script>
</head>
<body>
<script>
$(document).ready(function(){
jQuery(document).bind('keydown', 'ctrl+s',function (evt){
alert(evt.data.combi);
return false;
});
jQuery(document).bind('keydown', 'ctrl+x',function (evt){
alert(evt.data.combi);
return false;
});
});
</script>
</body></html>
Original comment by Afro.Sys...@gmail.com
on 3 May 2009 at 12:11
? It alerts "ctrl+x" always.
Original comment by jessige...@gmail.com
on 3 May 2009 at 12:20
you are right. my mistake ;-(
Original comment by Afro.Sys...@gmail.com
on 3 May 2009 at 12:33
hehe, come on~~
Original comment by jessige...@gmail.com
on 3 May 2009 at 12:39
Hi, I am waitting for the new version :)
Original comment by jessige...@gmail.com
on 13 Jun 2009 at 5:19
Anything new with this ? I'm in dire need for this to work =P
I cant do separate callbacks as a workaround as its being dynamically depending
on
some other variables done =(
Original comment by erik.ellis@gmail.com
on 11 Jan 2010 at 1:35
expecting ....
Original comment by jessige...@gmail.com
on 14 Jan 2010 at 3:15
I am getting the same error - is this fixed?
Original comment by rensohol...@gmail.com
on 21 Dec 2010 at 6:00
Original issue reported on code.google.com by
jessige...@gmail.com
on 24 Apr 2009 at 5:00Attachments: