kbot editor final round
BIN
packages/kbot/dist/win-64/tauri-app.exe
vendored
BIN
packages/kbot/generated_gen_15.png
Normal file
|
After Width: | Height: | Size: 2.3 MiB |
BIN
packages/kbot/generated_gen_16.png
Normal file
|
After Width: | Height: | Size: 2.3 MiB |
BIN
packages/kbot/generated_gen_17.png
Normal file
|
After Width: | Height: | Size: 2.4 MiB |
BIN
packages/kbot/generated_gen_18.png
Normal file
|
After Width: | Height: | Size: 2.3 MiB |
BIN
packages/kbot/generated_gen_19.png
Normal file
|
After Width: | Height: | Size: 2.3 MiB |
BIN
packages/kbot/generated_gen_20.png
Normal file
|
After Width: | Height: | Size: 2.4 MiB |
BIN
packages/kbot/generated_gen_21.png
Normal file
|
After Width: | Height: | Size: 2.3 MiB |
BIN
packages/kbot/generated_gen_22.png
Normal file
|
After Width: | Height: | Size: 2.2 MiB |
BIN
packages/kbot/generated_gen_23.png
Normal file
|
After Width: | Height: | Size: 1.7 MiB |
BIN
packages/kbot/generated_gen_24.png
Normal file
|
After Width: | Height: | Size: 2.5 MiB |
BIN
packages/kbot/generated_gen_25.png
Normal file
|
After Width: | Height: | Size: 2.5 MiB |
BIN
packages/kbot/generated_gen_26.png
Normal file
|
After Width: | Height: | Size: 2.5 MiB |
BIN
packages/kbot/generated_gen_27.png
Normal file
|
After Width: | Height: | Size: 2.5 MiB |
BIN
packages/kbot/generated_gen_28.png
Normal file
|
After Width: | Height: | Size: 2.5 MiB |
@ -477,6 +477,7 @@ export default function ImageGallery({
|
|||||||
className="w-full bg-white/10 border border-white/30 rounded-lg px-3 py-2 text-white placeholder-white/60 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent backdrop-blur-sm disabled:opacity-50 resize-none"
|
className="w-full bg-white/10 border border-white/30 rounded-lg px-3 py-2 text-white placeholder-white/60 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent backdrop-blur-sm disabled:opacity-50 resize-none"
|
||||||
onKeyDown={(e) => {
|
onKeyDown={(e) => {
|
||||||
if (e.key === 'Enter' && !e.shiftKey && lightboxPrompt.trim() && !isGenerating) {
|
if (e.key === 'Enter' && !e.shiftKey && lightboxPrompt.trim() && !isGenerating) {
|
||||||
|
e.stopPropagation();
|
||||||
if (e.ctrlKey) {
|
if (e.ctrlKey) {
|
||||||
// Ctrl+Enter: Submit and keep prompt for iteration
|
// Ctrl+Enter: Submit and keep prompt for iteration
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
@ -488,15 +489,21 @@ export default function ImageGallery({
|
|||||||
setLightboxPrompt('');
|
setLightboxPrompt('');
|
||||||
}
|
}
|
||||||
} else if (e.key === 'Escape') {
|
} else if (e.key === 'Escape') {
|
||||||
|
e.stopPropagation();
|
||||||
|
e.preventDefault();
|
||||||
setLightboxPrompt('');
|
setLightboxPrompt('');
|
||||||
} else if (e.ctrlKey && e.key === 'ArrowUp' && navigateHistory) {
|
} else if (e.ctrlKey && e.key === 'ArrowUp' && navigateHistory) {
|
||||||
|
e.stopPropagation();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
navigateHistory('up');
|
navigateHistory('up');
|
||||||
} else if (e.ctrlKey && e.key === 'ArrowDown' && navigateHistory) {
|
} else if (e.ctrlKey && e.key === 'ArrowDown' && navigateHistory) {
|
||||||
|
e.stopPropagation();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
navigateHistory('down');
|
navigateHistory('down');
|
||||||
}
|
}
|
||||||
|
// Delete key: Let it bubble up to lightbox handler for image deletion
|
||||||
// Shift+Enter: Allow new line (default textarea behavior)
|
// Shift+Enter: Allow new line (default textarea behavior)
|
||||||
|
// All other keys: Normal textarea behavior without interference
|
||||||
}}
|
}}
|
||||||
onClick={(e) => e.stopPropagation()}
|
onClick={(e) => e.stopPropagation()}
|
||||||
/>
|
/>
|
||||||
|
|||||||