mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
Mobile: send prompt on Enter and hide keyboard
This commit is contained in:
1 parent
e37bbf4ca4
commit
517747c828
1 file changed
+5
-2
@@ -368,8 +368,11 @@ export function PromptInput({
|
||||
}
|
||||
}
|
||||
|
||||
if (e.key === 'Enter' && (e.metaKey || e.ctrlKey)) {
|
||||
if (e.key === 'Enter' && (e.metaKey || e.ctrlKey || (isMobile && !e.shiftKey))) {
|
||||
e.preventDefault()
|
||||
if (isMobile) {
|
||||
textareaRef.current?.blur()
|
||||
}
|
||||
handleSubmit()
|
||||
} else if (e.key === 'Escape') {
|
||||
setShowSuggestions(false)
|
||||
@@ -486,7 +489,7 @@ export function PromptInput({
|
||||
|
||||
|
||||
return (
|
||||
<div className="relative backdrop-blur-md bg-background opacity-95 border border-border dark:border-white/30 rounded-xl p-2 md:p-3 md:mx-4 mb-2 md:mb-1 w-[95%] md:max-w-4xl">
|
||||
<div className="relative backdrop-blur-md bg-background opacity-95 border border-border dark:border-white/30 rounded-xl p-2 md:p-3 md:mx-4 mb-4 md:mb-1 w-[94%] md:max-w-4xl">
|
||||
{hasActiveStream && (
|
||||
<div className="">
|
||||
<SessionStatusIndicator sessionID={sessionID} />
|
||||
|
||||
Reference in new issue
Block a user