home/end keys...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-10-22 23:57:19 +03:00
parent 477e5be961
commit 0511ac879f
2 changed files with 12 additions and 3 deletions

View File

@ -1364,6 +1364,15 @@ var Outline = {
this.toggleCollapse(false)
: this.focus('next') } },
Home: function(evt){
if(this.get('edited')){
return }
this.focus(0) },
End: function(evt){
if(this.get('edited')){
return }
this.focus(-1) },
PageUp: function(evt){
var edited = this.get('edited')
if(!edited
@ -1379,7 +1388,7 @@ var Outline = {
evt.preventDefault()
this.shift('down') } },
// indent...
// indent..
Tab: function(evt){
evt.preventDefault()
var edited = this.get('edited')

View File

@ -45,10 +45,10 @@ var setup = function(){
-
- ## Bugs:
- BUG: editor: FF seems to update the style every other key press -- should be live...
- BUG: scrolling into view needs tuning...
- BUG: mobile browsers behave quite chaotically ignoring parts of the styling...
-
- ## ToDo:
- ASAP: scroll into view is bad...
- ASAP: mobile browsers behave quite chaotically ignoring parts of the styling...
- pgup/pgdown/home/end buttons
- identify a block (index, id, ...)
- FEATURE: "crop" -- view block tree separately...