From dc30fdfec5a29b07ca5f52add484a554f5ccdef8 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 23 Oct 2023 00:14:47 +0300 Subject: [PATCH] tweaks... Signed-off-by: Alex A. Naanou --- experiments/outline-editor/editor.js | 9 ++++++--- experiments/outline-editor/index.html | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/experiments/outline-editor/editor.js b/experiments/outline-editor/editor.js index 8016928..4577631 100755 --- a/experiments/outline-editor/editor.js +++ b/experiments/outline-editor/editor.js @@ -1365,14 +1365,17 @@ var Outline = { : this.focus('next') } }, Home: function(evt){ - if(this.get('edited')){ + if(this.get('edited') + && !evt.ctrlKey){ return } + evt.preventDefault() this.focus(0) }, End: function(evt){ - if(this.get('edited')){ + if(this.get('edited') + && !evt.ctrlKey){ return } + evt.preventDefault() this.focus(-1) }, - PageUp: function(evt){ var edited = this.get('edited') if(!edited diff --git a/experiments/outline-editor/index.html b/experiments/outline-editor/index.html index 2730230..225838e 100755 --- a/experiments/outline-editor/index.html +++ b/experiments/outline-editor/index.html @@ -49,7 +49,7 @@ var setup = function(){ - BUG: mobile browsers behave quite chaotically ignoring parts of the styling... - - ## ToDo: - - pgup/pgdown/home/end buttons + - pgup/pgdown/~home/end~ buttons - identify a block (index, id, ...) - FEATURE: "crop" -- view block tree separately... - focus