mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 14:03:30 +00:00 
			
		
		
		
	typeahead: Rename e to event for legibility.
This commit is contained in:
		@@ -137,13 +137,13 @@ import {insertTextIntoField} from "text-field-edit";
 | 
				
			|||||||
import {get_string_diff} from "../../src/util";
 | 
					import {get_string_diff} from "../../src/util";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
!(function ($) {
 | 
					!(function ($) {
 | 
				
			||||||
    function get_pseudo_keycode(e) {
 | 
					    function get_pseudo_keycode(event) {
 | 
				
			||||||
        const isComposing = (e.originalEvent && e.originalEvent.isComposing) || false;
 | 
					        const isComposing = (event.originalEvent && event.originalEvent.isComposing) || false;
 | 
				
			||||||
        /* We treat IME compose enter keypresses as a separate -13 key. */
 | 
					        /* We treat IME compose enter keypresses as a separate -13 key. */
 | 
				
			||||||
        if (e.keyCode === 13 && isComposing) {
 | 
					        if (event.keyCode === 13 && isComposing) {
 | 
				
			||||||
            return -13;
 | 
					            return -13;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return e.keyCode;
 | 
					        return event.keyCode;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* TYPEAHEAD PUBLIC CLASS DEFINITION
 | 
					    /* TYPEAHEAD PUBLIC CLASS DEFINITION
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user