mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
Continue on Alt + Enter
This commit is contained in:
parent
1ce3c93600
commit
ecc90f9f62
@ -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();
|
||||
}
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user