20 questions
0 votes
2 answers
62 views
Jquery hotkeys can't send value with function
I'm wondering why this works with jquery hotkeys: $(document).bind('keydown', 'm', dothis); but this doesn't: $(document).bind('keydown', 'm', dothis(6)); Even like this doesn't work: $(document)....
2 votes
1 answer
6k views
Javascript - keyup event firing multiple times
I am using hotkeys plugin to add handlers to key events. I have made an image slider, where I go through cover images of magazines. I have first made a script where the user can go through covers of ...
2 votes
2 answers
2k views
jQuery.HotKeys keybinding while input is focused
I am using jquery.hotkeys for implementing keyboard shortcuts. My code: $(document).bind('keydown', 'Ctrl+f', function () { $('#myid').focus(); return false; }); This works fine. ...
1 vote
0 answers
109 views
How to make the enter key do the tab key function for form elements
I am using jQuery Hotkey plugin https://github.com/jeresig/jquery.hotkeys , I want to move to other input boxes on keydown Enter instead of Tab which is default behaviour. But somehow I can't make it ...
1 vote
0 answers
46 views
How to set keyboard shortcuts common to both windows and mac using jquery
I had an web application which had piece of code for shortcuts which is working fine for windows in both chrome and firefox. How can i extend this to Mac machine for both chrome and firefox. Code in ...
1 vote
1 answer
921 views
Using Hotkeys to navigate tabs
How can I navigate between different tabs using shortcut keys implemented using hotkey from the following : https://github.com/jeresig/jquery.hotkeys . <div class="box-content"> ...
0 votes
2 answers
978 views
How to control combo box (html) with shortcut key / hotkey jQuery?
I have combo box like this : <select id="shift" name="s"> <option value="1" selected="selected">Shift 1</option> <option value="2">Shift 2</option> <option ...
1 vote
2 answers
1k views
document keydown bind not working for input field
I have been using jquery hotkeys plugin from jeresig's hotkey. Shortcuts work fine when the document is in focus, but when the focus is in input fields, the shortcuts are not working. I have used $(...
0 votes
1 answer
375 views
Using jQuery Hotkeys to Select Text Area without writing text
I am using jeresig's jQuery Hotkeys library to enable hotkeys that can select a text area on a webpage. However, when I use the hotkey, it inserts text into the text area instead of only selecting it, ...
2 votes
1 answer
954 views
jquery hotkeys not working in current browsers?
I have not used jquery.hotkeys.js in a while, but I cant seem to get even the most basic test to work in any current browsers. Using Ver 0.8 I also tried with other versions of jQuery but stuck with ...
0 votes
1 answer
2k views
ui-state-focus class not being removed from JQuery UI tab when changing active tab programatically
I'm using jquery hotkeys plugin and binding a keydown press to my JQuery UI tabs like so: $(document).bind('keydown', '2', function (evt){ $("#TabsID").tabs("option", "active", 1); return ...
1 vote
1 answer
265 views
Latest version of jQuery hotkeys plugin doesn't accept characters unless using keypress
I downloaded the latest version of the jQuery plugin here. I noticed that it doesn't work if I bind it using keydown and pass in something with a character like 'ctrl+u'. I found that this piece of ...
0 votes
2 answers
117 views
change event dont execute after running a hotkey event on an input element - jquery
at below code in the input element after I write something .chane() event will execute Normally. but when I use a hotkey event such as left key and change the input value the change() event will not ...
2 votes
3 answers
5k views
JS bind a keyboard shortcut to a function
function initKeys() { $(document).bind("keydown", "U", LoadPlayer); } window.onload = initKeys; I want to execute the function 'LoadPlayer' on pressing the u key. What I'm getting is that for ...
4 votes
2 answers
4k views
Can't override ctrl+s in Firefox using jQuery Hotkeys
I'm using the jQuery Hotkeys plugin: http://code.google.com/p/js-hotkeys/ Here is the code i'm using: $(document).bind('keydown', 'Ctrl+s', function(event) { alert('saving?'); return false; }); In ...