mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	tabindex 2 for text and code editor so that tabbing from title leads to editor focus
This commit is contained in:
		
							parent
							
								
									5b43f321e2
								
							
						
					
					
						commit
						7a94e21c54
					
				| @ -31,7 +31,8 @@ async function show() { | ||||
|             highlightSelectionMatches: {showToken: /\w/, annotateScrollbar: false}, | ||||
|             lint: true, | ||||
|             gutters: ["CodeMirror-lint-markers"], | ||||
|             lineNumbers: true | ||||
|             lineNumbers: true, | ||||
|             tabindex: 2 // so that tab from title will lead to code editor focus
 | ||||
|         }); | ||||
| 
 | ||||
|         codeEditor.on('change', noteDetailService.noteChanged); | ||||
|  | ||||
| @ -28,6 +28,23 @@ | ||||
|     align-items: center; | ||||
| } | ||||
| 
 | ||||
| #note-detail-wrapper { | ||||
|     position: relative; | ||||
|     overflow: hidden; | ||||
|     grid-area: note-detail; | ||||
|     padding-left: 10px; | ||||
|     padding-top: 10px; | ||||
|     display: flex; | ||||
|     flex-direction: column; | ||||
| } | ||||
| 
 | ||||
| #note-detail-component-wrapper { | ||||
|     flex-grow: 1; | ||||
|     position: relative; | ||||
|     overflow: auto; | ||||
|     flex-basis: content; | ||||
| } | ||||
| 
 | ||||
| .note-detail-component { | ||||
|     display: none; | ||||
| } | ||||
|  | ||||
| @ -132,9 +132,9 @@ | ||||
|         </div> | ||||
|       </div> | ||||
| 
 | ||||
|       <div style="position: relative; overflow: hidden; grid-area: note-detail; padding-left: 10px; padding-top: 10px; display: flex; flex-direction: column;" id="note-detail-wrapper"> | ||||
|         <div style="flex-grow: 1; position: relative; overflow: auto; flex-basis: content;"> | ||||
|           <div id="note-detail-text" style="height: 100%;" class="note-detail-component"></div> | ||||
|       <div  id="note-detail-wrapper"> | ||||
|         <div id="note-detail-component-wrapper"> | ||||
|           <div id="note-detail-text" class="note-detail-component" tabindex="2"></div> | ||||
| 
 | ||||
|           <div id="note-detail-search" class="note-detail-component"> | ||||
|             <div style="display: flex; align-items: center;"> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 azivner
						azivner