mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	fix(web): remove processing key events in photo viewer window (#3238)
This commit is contained in:
		@@ -45,6 +45,9 @@
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  const handleKeypress = async ({ metaKey, ctrlKey, key }: KeyboardEvent) => {
 | 
			
		||||
    if (window.getSelection()?.type === 'Range') {
 | 
			
		||||
      return;
 | 
			
		||||
    }
 | 
			
		||||
    if ((metaKey || ctrlKey) && key === 'c') {
 | 
			
		||||
      await doCopy();
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user