Commit 165eb7f8 authored by KesaubeEire's avatar KesaubeEire

fix: 修复了 escape 导致 trigger 不能被及时取消的问题.

parent 1c707809
......@@ -20,6 +20,16 @@
export let contentTrigger;
</script>
<!-- NOTE: 修复了 escape 导致 trigger 不能被及时取消的问题 -->
<svelte:window
on:keydown|capture={event => {
// console.log(event);
if (event.key === 'Escape') {
closeCallBack();
}
}}
/>
<!-- NOTE: 游戏详情预览模态框 -->
<dialog {id} class="modal focus:outline-none">
{#if trigger}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment