In addition to using window.addEventListener('keydown', callback)
Are there any other methods?
认证0级讲师
Even if the keyboard event is bound, it needs to be triggered when the element is in focus.
LinkOfficial mention, give it a try
Even if the keyboard event is bound, it needs to be triggered when the element is in focus.
Link
Official mention, give it a try