Skip to content

Commit f58c915

Browse files
fixed the video player not closing on escape (#240)
Close via escape button is not working in the video player fixes: IceWhaleTech/CasaOS/issues/1990 ### Explanation Added missing close function
1 parent 86dca65 commit f58c915

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main/src/components/filebrowser/viewers/VideoPlayer.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ export default {
149149
this.instance.destroy(false);
150150
}
151151
},
152+
methods: {
153+
close() {
154+
this.$emit("close");
155+
}
156+
}
152157
};
153158
</script>
154159
<style lang="scss" scoped>

0 commit comments

Comments
 (0)