From ecc90f9f620984a85008af4c9cc1e2086653ee32 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Thu, 14 Sep 2023 03:59:12 -0700 Subject: [PATCH] Continue on Alt + Enter --- js/main.js | 4 ++-- modules/ui_chat.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/main.js b/js/main.js index e6a23726..4c09fce6 100644 --- a/js/main.js +++ b/js/main.js @@ -63,8 +63,8 @@ document.addEventListener("keydown", function(event) { document.getElementById('Regenerate').click(); } - // Continue on Ctrl + Shift + C - else if (event.ctrlKey && event.shiftKey && event.key === 'C') { + // Continue on Alt + Enter + else if (event.altKey && event.key === 'Enter') { event.preventDefault(); document.getElementById('Continue').click(); } diff --git a/modules/ui_chat.py b/modules/ui_chat.py index 92bf748a..5c7933eb 100644 --- a/modules/ui_chat.py +++ b/modules/ui_chat.py @@ -41,7 +41,7 @@ def create_ui(): # Hover menu buttons shared.gradio['Regenerate'] = gr.Button('Regenerate (Ctrl + Enter)', elem_id='Regenerate') - shared.gradio['Continue'] = gr.Button('Continue (Ctrl + Shift + C)', elem_id='Continue') + shared.gradio['Continue'] = gr.Button('Continue (Alt + Enter)', elem_id='Continue') shared.gradio['Remove last'] = gr.Button('Remove last reply (Ctrl + Shift + Backspace)', elem_id='Remove-last') shared.gradio['Replace last reply'] = gr.Button('Replace last reply (Ctrl + Shift + L)', elem_id='Replace-last') shared.gradio['Copy last reply'] = gr.Button('Copy last reply (Ctrl + Shift + K)', elem_id='Copy-last')