notes + experimenting...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-11-11 23:57:30 +03:00
parent 33862e6e70
commit 4401e03de2
2 changed files with 9 additions and 4 deletions

View File

@ -703,6 +703,9 @@
&:focus { &:focus {
background: rgba(0,0,0,0.07); background: rgba(0,0,0,0.07);
} }
&>.code:focus {
position: absolute;
}
&>.children { &>.children {
display: table !important; display: table !important;
@ -731,6 +734,9 @@
&:focus { &:focus {
background: rgba(0,0,0,0.07); background: rgba(0,0,0,0.07);
} }
&>.code:focus {
column-span: all;
}
} }
} }

View File

@ -1944,12 +1944,10 @@ var Outline = {
left: function(){}, left: function(){},
right: function(){}, right: function(){},
__overtravel_timeout: undefined,
__caret_x: undefined,
// XXX move the code here into methods/actions... // XXX move the code here into methods/actions...
// XXX use keyboard.js... // 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: { keyboard: {
// XXX might be a good feature to add to keyboard.js... // XXX might be a good feature to add to keyboard.js...
// ...might even be fun to extend this and add key classes, // ...might even be fun to extend this and add key classes,
@ -1959,6 +1957,7 @@ var Outline = {
// Letter // Letter
// Number // Number
// ... // ...
// Unhandled
Any: function(evt, key){ Any: function(evt, key){
if(this.__caret_x if(this.__caret_x
&& this.get('edited') && this.get('edited')