Skip to content

Commit

Permalink
nit app focus
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Nov 8, 2024
1 parent 2eb9cfd commit ae70c37
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion frontend/src/lib/components/apps/svelte-grid/Grid.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,15 @@
}
</script>

<svelte:window on:keydown={handleKeyDown} on:keyup={handleKeyUp} />
<svelte:window
on:focus={() => {
if ($isCtrlOrMetaPressedStore) {
$isCtrlOrMetaPressedStore = false
}
}}
on:keydown={handleKeyDown}
on:keyup={handleKeyUp}
/>

<div
class="svlt-grid-container"
Expand Down

0 comments on commit ae70c37

Please sign in to comment.