Add Modal's keyboard escape and focus options to Toasts
Created by: whicks1
Prerequisites
-
I have searched for duplicate or closed feature requests -
I have read the contributing guidelines
Proposal
Add configuration options to Toast components that allow for keyboard escapes and element focus using the same methods as modals.
Motivation and context
Modals contain configuration options that allows for toggling off/on the ability for the user to keyboard esc to close and grant focus to the modal-window on init. Toasts can be used for similar, but less intrusive purposes in the UI, and allow to disable the autohide feature, but don't currently allow for keyboard escape options or focus, though they are perfectly capable of housing user inputs, meaning they are partially obscured from non-mouse users. Adding the same option gives both the developer and the user greater control over visibility of toasts.