mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Add repo file tree item link behavior (#34730)
Converts the repo file tree items into `<a>` elements to have default link behavior. Dynamic content load is still done when no special key is pressed while clicking on an item. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		| @@ -369,3 +369,8 @@ export function addDelegatedEventListener<T extends HTMLElement, E extends Event | ||||
|     listener(elem as T, e as E); | ||||
|   }, options); | ||||
| } | ||||
|  | ||||
| /** Returns whether a click event is a left-click without any modifiers held */ | ||||
| export function isPlainClick(e: MouseEvent) { | ||||
|   return e.button === 0 && !e.ctrlKey && !e.metaKey && !e.altKey && !e.shiftKey; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user