Hi Tech Shop,
Your requirement can be achievable in our List box by binding the keyDown event in List box created event as like as below.
|
public oncreated(): void {
this.listObj1.element.addEventListener(
'keydown',
(e) => {
if (e.keyCode == 65 || e.keyCode == 97) {
// prevent ctrl+ a action
e.stopImmediatePropagation();
// do your own action here
}
},
true
);
}
<ejs-listbox
#listbox1
[dataSource]="data"
(created)="oncreated($event)"
></ejs-listbox>
|
For your convenience, we have prepared the sample based on our suggestion. In this we have prevented the Ctrl + A action in created event and do your own customization in that event. Please find the link below.
Could you please check the attached sample and get back to us, if you need any further assistance on this.
Regards,
Sangeetha M