i m using ion-picker and i have added 2 buttons on that picker, one is ‘ok’ button and another is ‘cancel’, how to bind keyboard enter to ‘ok’ button?
let pickerOptions = {
buttons: [
{
text: 'Cancel',
role: 'cancel'
},
{
text: 'Ok',
handler: (selectedItem: any) =>
{
//
}
}
]
};
let picker = await this.pickerController.create(pickerOptions);
picker.present();