How would I go about allowing users to use their keyboards to respond to an NSB.MsgBox instead of their mouse when my app is used on the desktop?
I’m able to access the MsgBox buttons using
button = document.querySelectorAll('.dialog-buttonNoBorder') and testing for a specific button’s text with
button.textContent, but I’m not sure how to connect to and then emulate the click event with a keyboard event (onkeyup, onkeypress, etc.) in code for that particular button. TIA for any advice or code samples.