EasyToHelp
asked on
How to have the ctrl button pressed on page load
Hi
I am currently using a Jquery selectable to allow users to select block.
It allows them to drag and select but i would also like to allow users to select individual blocks and this is achievable by having the ctrl key pressed when the page loads.
I am currently using a Jquery selectable to allow users to select block.
It allows them to drag and select but i would also like to allow users to select individual blocks and this is achievable by having the ctrl key pressed when the page loads.
hi,
have you done everything same as:
https://jqueryui.com/selectable/#display-grid
can you share your code?
have you done everything same as:
https://jqueryui.com/selectable/#display-grid
can you share your code?
ASKER
Hi Mrunal
Yes that is what i had used,
Now if you press the control key the user is able to select items 1 and 12.
I am using this on a mobile device so the user does not have a ctrl key that they can press, how would it be possible for me to achieve this on a mobile device,is it possible to get the keypressed event to occur when the page is loaded.
Regards
Yes that is what i had used,
Now if you press the control key the user is able to select items 1 and 12.
I am using this on a mobile device so the user does not have a ctrl key that they can press, how would it be possible for me to achieve this on a mobile device,is it possible to get the keypressed event to occur when the page is loaded.
Regards
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
List of Mouse Event in JQuery
Every listener function will receive an "eventObject" where you can identify if control is pressed or not,
example:
Open in new window