mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 12:03:46 +00:00 
			
		
		
		
	static/js/common: Extract function has_mac_keyboard.
				
					
				
			This commit is contained in:
		
				
					committed by
					
						 Tim Abbott
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							e2549b3b84
						
					
				
				
					commit
					371343709b
				
			| @@ -128,7 +128,7 @@ exports.get_keydown_hotkey = function (e) { | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     var isCmdOrCtrl = /Mac/i.test(navigator.userAgent) ? e.metaKey : e.ctrlKey; | ||||
|     var isCmdOrCtrl = common.has_mac_keyboard() ? e.metaKey : e.ctrlKey; | ||||
|     if (isCmdOrCtrl && !e.shiftKey) { | ||||
|         hotkey = keydown_cmd_or_ctrl_mappings[e.which]; | ||||
|         if (hotkey) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user