f3oall / awesome-notifications

Lightweight JavaScript Notifications Library
https://f3oall.github.io/awesome-notifications/
MIT License
292 stars 40 forks source link

Keyboard navigation #27

Closed iGadget73 closed 4 years ago

iGadget73 commented 5 years ago

In my app the awn confirm pops up pretty often and I miss the opportunity to press return or hit esc to navigate through it.

A simple keyboard binding would be awesomenazing and helpful for the best UX. The green (confirm-ok) button should be automatically bound to the return key and the red (confirm-cancel) to the esc key.

Also options to change that default behaviour would be awesome!

Nickfrm commented 4 years ago

Hi! Buttons behavior is same as you described (for Esc or Enter key) and works fine for me. Can you specify version of library you use? Probably you're using old one.

iGadget73 commented 4 years ago

Yeah, the update made it work again.