From 4401e03de2a734053fb7a2e6a7295af299227cb8 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 11 Nov 2023 23:57:30 +0300 Subject: [PATCH] notes + experimenting... Signed-off-by: Alex A. Naanou --- experiments/outline-editor/editor.css | 6 ++++++ experiments/outline-editor/editor.js | 7 +++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/experiments/outline-editor/editor.css b/experiments/outline-editor/editor.css index 43fa6e9..4eaf4f8 100755 --- a/experiments/outline-editor/editor.css +++ b/experiments/outline-editor/editor.css @@ -703,6 +703,9 @@ &:focus { background: rgba(0,0,0,0.07); } + &>.code:focus { + position: absolute; + } &>.children { display: table !important; @@ -731,6 +734,9 @@ &:focus { background: rgba(0,0,0,0.07); } + &>.code:focus { + column-span: all; + } } } diff --git a/experiments/outline-editor/editor.js b/experiments/outline-editor/editor.js index 3860061..b3e3f7f 100755 --- a/experiments/outline-editor/editor.js +++ b/experiments/outline-editor/editor.js @@ -1944,12 +1944,10 @@ var Outline = { left: function(){}, right: function(){}, + __overtravel_timeout: undefined, + __caret_x: undefined, // XXX move the code here into methods/actions... // XXX use keyboard.js... - __overtravel_timeout: undefined, - // XXX this needs to be dropped on any edit keyboard input, not sure - // how to do this cleanly (including focus clicks)... - __caret_x: undefined, keyboard: { // XXX might be a good feature to add to keyboard.js... // ...might even be fun to extend this and add key classes, @@ -1959,6 +1957,7 @@ var Outline = { // Letter // Number // ... + // Unhandled Any: function(evt, key){ if(this.__caret_x && this.get('edited')