Do browser key events fire (bubble) only to elements in focus?
问题 Experimental evidence has led me to believe that key (up, down, press) events fire (in bubble phase) only to elements in focus . This behavior may be intuitive, obvious and/or desirable, but haven't seen this documented anywhere, so I was hoping the community would confirm my "theory". Otherwise, I have some code that's not properly letting these events bubble up. Thanks! 回答1: key events are always targeted to the element that has focus, and bubble up until cancelled. You cannot press a key