mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 10:00:08 +00:00
tuning...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
69701f0697
commit
66e0f112fd
@ -1744,18 +1744,21 @@ var Outline = {
|
|||||||
var elem = evt.target
|
var elem = evt.target
|
||||||
if(that.runPlugins('__keydown__', evt, that, evt.target) !== true){
|
if(that.runPlugins('__keydown__', evt, that, evt.target) !== true){
|
||||||
return }
|
return }
|
||||||
// update element state...
|
|
||||||
if(elem.classList.contains('code')){
|
|
||||||
setTimeout(function(){
|
|
||||||
that.update(elem.parentElement)
|
|
||||||
elem.updateSize() }, 0) }
|
|
||||||
// handle keyboard...
|
// handle keyboard...
|
||||||
evt.key in that.keyboard
|
evt.key in that.keyboard
|
||||||
&& that.keyboard[evt.key].call(that, evt) })
|
&& that.keyboard[evt.key].call(that, evt) })
|
||||||
// update code block...
|
// update code block...
|
||||||
outline.addEventListener('keyup',
|
outline.addEventListener('keyup',
|
||||||
function(evt){
|
function(evt){
|
||||||
that.runPlugins('__keyup__', evt, that, evt.target) })
|
var elem = evt.target
|
||||||
|
// update element state...
|
||||||
|
if(elem.classList.contains('code')){
|
||||||
|
// NOTE: for some reason setting the timeout here to 0
|
||||||
|
// makes FF sometimes not see the updated text...
|
||||||
|
setTimeout(function(){
|
||||||
|
that.update(elem.parentElement)
|
||||||
|
elem.updateSize() }, 0) }
|
||||||
|
that.runPlugins('__keyup__', evt, that, elem) })
|
||||||
|
|
||||||
// toggle view/code of nodes...
|
// toggle view/code of nodes...
|
||||||
outline.addEventListener('focusin',
|
outline.addEventListener('focusin',
|
||||||
|
|||||||
@ -46,7 +46,6 @@ var setup = function(){
|
|||||||
-
|
-
|
||||||
- ## Bugs:
|
- ## Bugs:
|
||||||
focused:: true
|
focused:: true
|
||||||
- BUG: editor: FF seems to update the style every other key press -- should be live...
|
|
||||||
- BUG: mobile browsers behave quite chaotically ignoring parts of the styling...
|
- BUG: mobile browsers behave quite chaotically ignoring parts of the styling...
|
||||||
-
|
-
|
||||||
- ## ToDo:
|
- ## ToDo:
|
||||||
@ -109,6 +108,7 @@ var setup = function(){
|
|||||||
block text
|
block text
|
||||||
- NOTE: this is only a problem if making list-items manually -- disable???
|
- NOTE: this is only a problem if making list-items manually -- disable???
|
||||||
- empty item height is a bit off...
|
- empty item height is a bit off...
|
||||||
|
- search?
|
||||||
- DONE over-travel pause -- when going fast over start/end stop...
|
- DONE over-travel pause -- when going fast over start/end stop...
|
||||||
- DONE focus:
|
- DONE focus:
|
||||||
collapsed:: true
|
collapsed:: true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user