mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01:00 
			
		
		
		
	fix keyboard navigation in the note tree, fixes #4036
This commit is contained in:
		
							parent
							
								
									e22f77eae7
								
							
						
					
					
						commit
						691fccb769
					
				@ -185,14 +185,8 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
 | 
			
		||||
    async doRefresh(note) {
 | 
			
		||||
        const noteComplement = await froca.getNoteComplement(note.noteId);
 | 
			
		||||
 | 
			
		||||
        await this.spacedUpdate.allowUpdateWithoutChange(() => {
 | 
			
		||||
            // https://github.com/zadam/trilium/issues/3914 
 | 
			
		||||
            // todo: quite hacky, but it works. remove it if ckeditor has fixed it.
 | 
			
		||||
            this.$editor.trigger('focus');
 | 
			
		||||
            this.$editor.trigger('blur')
 | 
			
		||||
                    
 | 
			
		||||
            this.watchdog.editor.setData(noteComplement.content || "");
 | 
			
		||||
        });
 | 
			
		||||
        await this.spacedUpdate.allowUpdateWithoutChange(() =>
 | 
			
		||||
            this.watchdog.editor.setData(noteComplement.content || ""));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    getData() {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user