space and enter keyboard support

pull/2809/head
Tuğçe Küçükoğlu 2022-07-27 12:46:14 +03:00
parent bfff7681b9
commit 0cae7b2e84
1 changed files with 7 additions and 3 deletions

View File

@ -209,10 +209,14 @@ export default {
case 'Space':
case 'Enter':
if (!this.overlayVisible) {
this.show();
event.preventDefault();
if (this.overlayVisible) {
this.hide();
}
else {
this.show();
}
event.preventDefault();
break;
case 'Escape':