Skip to content

Commit 3605c05

Browse files
committed
Close block-dialog by pressing enter
1 parent 2f285f6 commit 3605c05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/Blocked/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ export class Blocked extends Component {
218218
selected: event.target.value,
219219
})
220220
}
221+
// Only Key Down event listener was added, to handle ENTER keypress and close dialog
221222
onKeyDown={(event) => {
222223
if (event.key === 'Enter') {
223224
this.unblock();

0 commit comments

Comments
 (0)