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 'Space':
case 'Enter': case 'Enter':
if (!this.overlayVisible) { if (this.overlayVisible) {
this.show(); this.hide();
event.preventDefault();
} }
else {
this.show();
}
event.preventDefault();
break; break;
case 'Escape': case 'Escape':