Our accessibility department flagged our kendo multiselects as being "inaccessible" because "spacebar" is not supported to use as a selector. Multiselect apparently uses "Enter" key to make multiple selections.
I have tried to swap the keycodes during detection but it doesnt seem to work.
Ultimately, we would like to support "spaces" in our input field, but use the spacebar key to make a selection when scrolling through the list.
I have tried this code but it doesnt work. Any ideas? Is this possible?
//watch for "spacebar" key sequence from user keyboard
multiselectRoot.on("keydown", function (e) {
if (e.keyCode === 32) { // space bar
console.log('found spacebar');
event.preventDefault();
e.keyCode = 13; //reset to "return key"
multiselect.trigger(e);
console.log('event fired');
}
});
Thank you