Skip to content

Commit 011f8d9

Browse files
committed
Dialog and Alert roles can host keyboard listeners
1 parent 6596435 commit 011f8d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ module.exports = {
103103
'onKeyDown',
104104
'onKeyUp',
105105
],
106+
alert: ['onKeyUp', 'onKeyDown', 'onKeyPress'],
106107
body: ['onError', 'onLoad'],
108+
dialog: ['onKeyUp', 'onKeyDown', 'onKeyPress'],
107109
iframe: ['onError', 'onLoad'],
108110
img: ['onError', 'onLoad'],
109111
},

0 commit comments

Comments
 (0)