Click here to Skip to main content
15,894,410 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I would like to know what code could i use to have the control key pressed on page load.

Currently i am using a Jquery selectable function which allows users to select certain blocks with a drag event(allows them to select blocks in sequence e.g.
1 2 3 4
5 6 7 8

if they click on block 1 they will be able to drag the mouse to select the remaining blocks.

, if they press the control key on their keyboard then it allows them to select multiple blocks without having to drag

so they can select block 1 and block 8 without having to select any of the other blocks

I want to know how could i have the control key pressed on page load so that they would not have to press it?
Posted
Comments
FrostedSyntax 12-Feb-15 20:34pm    
Can you not just change the code to allow the blocks to be selected individually? If the control key is automatically held down how will they use the drag to select feature?
isi19 13-Feb-15 0:39am    
the drag feature still works if the control key is pressed down

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900