space and enter keyboard support
parent
bfff7681b9
commit
0cae7b2e84
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue