mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Enter to submit dialogue popup input
This commit is contained in:
		@@ -987,6 +987,12 @@ $("document").ready(function () {
 | 
			
		||||
                Generate();
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        if ($(':focus').attr('id') === 'dialogue_popup_input' && !isMobile()) {
 | 
			
		||||
            if (!event.shiftKey && !event.ctrlKey && event.key == "Enter") {
 | 
			
		||||
                event.preventDefault();
 | 
			
		||||
                $('#dialogue_popup_ok').trigger('click');
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        //ctrl+shift+up to scroll to context line
 | 
			
		||||
        if (event.shiftKey && event.ctrlKey && event.key == "ArrowUp") {
 | 
			
		||||
            event.preventDefault();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user