Controlling keydown

Results 1 to 2 of 2

Thread: Controlling keydown

  1. #1
    Join Date
    Dec 1969

    Default Controlling keydown

    I have a listbox that can handle multiple selects but only if the control key is held down.<BR><BR>Is is possible to associate keydown behaviour with that listbox so that the user would simply have to click instead of Ctrl + Click?

  2. #2
    Join Date
    Dec 1969

    Default RE: Controlling keydown

    Basically, whenever a user clicks a value on the select box, use the &#039;onClick&#039; event to call a function which adds the selected value to a global array, then loop through the array and auto-select each option listed in the array (because every other option would have been deselected by the click without the ctrl)<BR><BR>I would write this myself for you, but I couldn&#039;t even get the Javascript to check which values had been selected, the .selected property didn&#039;t seem to work for a multiple select!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts