allow ctrl-clicking primary tabs
This commit is contained in:
		
							parent
							
								
									6af4508518
								
							
						
					
					
						commit
						bcb353cc30
					
				| @ -167,12 +167,13 @@ ebi('tree').innerHTML = ( | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| function opclick(e) { | function opclick(e) { | ||||||
| 	ev(e); |  | ||||||
| 
 |  | ||||||
| 	var dest = this.getAttribute('data-dest'); | 	var dest = this.getAttribute('data-dest'); | ||||||
| 	goto(dest); |  | ||||||
| 
 |  | ||||||
| 	swrite('opmode', dest || null); | 	swrite('opmode', dest || null); | ||||||
|  | 	if (ctrl(e)) | ||||||
|  | 		return; | ||||||
|  | 
 | ||||||
|  | 	ev(e); | ||||||
|  | 	goto(dest); | ||||||
| 
 | 
 | ||||||
| 	var input = QS('.opview.act input:not([type="hidden"])') | 	var input = QS('.opview.act input:not([type="hidden"])') | ||||||
| 	if (input && !is_touch) | 	if (input && !is_touch) | ||||||
|  | |||||||
| @ -53,6 +53,11 @@ var ebi = document.getElementById.bind(document), | |||||||
|     mknod = document.createElement.bind(document); |     mknod = document.createElement.bind(document); | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | function ctrl(e) { | ||||||
|  |     return e && (e.ctrlKey || e.metaKey); | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| function ev(e) { | function ev(e) { | ||||||
|     e = e || window.event; |     e = e || window.event; | ||||||
|     if (!e) |     if (!e) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 ed
						ed