Possible Duplicate:
How can I check with JQuery, if a certain word is typed in the Browser?
Ok, I have found this great plugin in order to capture and execute hot key commands for jQuery.
http://plugins.jquery.com/project/hotkeys
My question before I get too involved in this is that I noticed the “+” between the keys. I was looking for something that would capture what the user enters after typing a string.
the goal is to call a function that will show quick data on a “job” that is stored in the database. For example: (all of this is key stroked not holding down the combination)
If the user types this combination: c v l
then a function is called to listen for the next command. The user then types: 1 2 3
this would then fire another function to find job: 123 from the database.
Basically I am looking for an idea on how this might be possible. If anyone has any idea or if I need to provide more details please let me know. Thanks!
I would simple add a keyup function and look at the keys that being pressed. So something like this pseudocode:
Obviously this would need to be refined and converted into actual JS.