Small UI changes
This commit is contained in:
parent
44ee1ac94b
commit
12f8c019f0
5 changed files with 47 additions and 35 deletions
|
|
@ -92,7 +92,7 @@ export class N2PageNodeUI extends CustomHTMLElement {
|
|||
|
||||
this.node.setContent(this.elNodeContent.value)
|
||||
})
|
||||
this.elIconHistory.addEventListener('click', ()=>_mbus.dispatch('SHOW_PAGE', { page: 'history' }))
|
||||
this.elIconHistory.addEventListener('click', () => _mbus.dispatch('SHOW_PAGE', { page: 'history' }))
|
||||
|
||||
this.showMarkdown(true)
|
||||
}// }}}
|
||||
|
|
@ -106,9 +106,9 @@ export class N2PageNodeUI extends CustomHTMLElement {
|
|||
}// }}}
|
||||
takeFocus() {// {{{
|
||||
if (this.showMarkdown()) {
|
||||
this.elNodeMarkdown.focus()
|
||||
this.elNodeMarkdown.focus({ preventScroll: true })
|
||||
} else
|
||||
this.elNodeContent.focus()
|
||||
this.elNodeContent.focus({ preventScroll: true })
|
||||
}// }}}
|
||||
|
||||
contentChanged(event) {//{{{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue