diff --git a/experiments/outline-editor/editor.js b/experiments/outline-editor/editor.js index 139ced0..8016928 100755 --- a/experiments/outline-editor/editor.js +++ b/experiments/outline-editor/editor.js @@ -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') diff --git a/experiments/outline-editor/index.html b/experiments/outline-editor/index.html index edcf474..2730230 100755 --- a/experiments/outline-editor/index.html +++ b/experiments/outline-editor/index.html @@ -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...