File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ <h1>Gemma <span class="sub">on a 5090</span></h1>
3636 < div id ="messages "> </ div >
3737 < form id ="composer ">
3838 < div id ="imagePreview " class ="image-preview "> </ div >
39- < textarea id ="prompt " placeholder ="ask Gemma… paste/drop images, ⌘/ctrl+ Enter to send " rows ="3 "> </ textarea >
39+ < textarea id ="prompt " placeholder ="ask Gemma… paste/drop images, Enter to send (Shift+Enter for newline) " rows ="3 "> </ textarea >
4040 < div class ="composer-row ">
4141 < button id ="attach " type ="button " title ="attach image "> 📎 image</ button >
4242 < input id ="fileInput " type ="file " accept ="image/* " multiple hidden />
Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ els.newChat.addEventListener('click', newConversation);
327327els . prompt . addEventListener ( 'input' , updateSendEnabled ) ;
328328
329329els . prompt . addEventListener ( 'keydown' , ( e ) => {
330- if ( ( e . metaKey || e . ctrlKey ) && e . key === 'Enter' ) {
330+ if ( e . key === 'Enter' && ! e . shiftKey && ! e . isComposing ) {
331331 e . preventDefault ( ) ;
332332 els . composer . requestSubmit ( ) ;
333333 }
You can’t perform that action at this time.
0 commit comments