Fix error handling in gemini and add dataItem hotkey
This commit is contained in:
@@ -8,8 +8,9 @@
|
||||
import CheckInput from "./GUI/CheckInput.svelte";
|
||||
import { ArrowDown, ArrowUp, XIcon } from "lucide-svelte";
|
||||
import TextInput from "./GUI/TextInput.svelte";
|
||||
|
||||
import { DBState } from 'src/ts/stores.svelte';
|
||||
import { onDestroy, onMount } from "svelte";
|
||||
|
||||
let opened = $state(false)
|
||||
interface Props {
|
||||
promptItem: PromptItem;
|
||||
@@ -98,6 +99,20 @@
|
||||
|
||||
}
|
||||
|
||||
const EL = (e:KeyboardEvent) => {
|
||||
if(e.ctrlKey && e.altKey && e.key === 'o'){
|
||||
opened = !opened
|
||||
}
|
||||
}
|
||||
|
||||
onMount(() => {
|
||||
document.addEventListener('keydown', EL)
|
||||
})
|
||||
|
||||
onDestroy(() => {
|
||||
document.removeEventListener('keydown', EL)
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<div class="first:mt-0 w-full h-2" role="doc-pagebreak" ondrop={(e) => {
|
||||
|
||||
Reference in New Issue
Block a user