mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	hotkey: Add support for hotspots on enter.
This commit is contained in:
		@@ -251,6 +251,11 @@ exports.process_enter_key = function (e) {
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (hotspots.is_open()) {
 | 
			
		||||
        $(e.target).find('.hotspot.overlay.show .hotspot-confirm').click();
 | 
			
		||||
        return false;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (emoji_picker.reactions_popped()) {
 | 
			
		||||
        if (emoji_picker.is_composition(e.target)) {
 | 
			
		||||
            e.target.click();
 | 
			
		||||
@@ -443,6 +448,10 @@ exports.process_hotkey = function (e, hotkey) {
 | 
			
		||||
        return emoji_picker.navigate(e, event_name);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (hotspots.is_open()) {
 | 
			
		||||
        return false;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (overlays.info_overlay_open()) {
 | 
			
		||||
        return false;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user