mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-25 12:21:58 +00:00
Compare commits
No commits in common. "d04a6ee5380a5b48540c2f361928f875a9e731a2" and "360103bee382ddb4da91a0686458acd20f43dd79" have entirely different histories.
d04a6ee538
...
360103bee3
@ -1856,7 +1856,7 @@ var Outline = {
|
|||||||
this.remove(edited)
|
this.remove(edited)
|
||||||
return } },
|
return } },
|
||||||
|
|
||||||
a_x: function(evt){
|
c_d: function(evt){
|
||||||
// toggle done...
|
// toggle done...
|
||||||
evt.preventDefault()
|
evt.preventDefault()
|
||||||
tasks.toggleDone(this) },
|
tasks.toggleDone(this) },
|
||||||
@ -1866,15 +1866,6 @@ var Outline = {
|
|||||||
// - should we select the .block or .text???
|
// - should we select the .block or .text???
|
||||||
// - we should remember the first state and apply it (a-la FAR)
|
// - we should remember the first state and apply it (a-la FAR)
|
||||||
// and not simply toggle on/off per node...
|
// and not simply toggle on/off per node...
|
||||||
Shift: function(evt){
|
|
||||||
if(this.get('edited')){
|
|
||||||
return }
|
|
||||||
// XXX set selection mode
|
|
||||||
// ...need to reset this when shift key is released...
|
|
||||||
// one way to do this is to save a press id and reset
|
|
||||||
// it each call -- if the id has changed since lass s-up
|
|
||||||
// is pressed then reset mode...
|
|
||||||
},
|
|
||||||
s_ArrowUp: function(evt){
|
s_ArrowUp: function(evt){
|
||||||
if(this.get('edited')){
|
if(this.get('edited')){
|
||||||
return }
|
return }
|
||||||
@ -1891,18 +1882,6 @@ var Outline = {
|
|||||||
elem.removeAttribute('selected')
|
elem.removeAttribute('selected')
|
||||||
: elem.setAttribute('selected', '')
|
: elem.setAttribute('selected', '')
|
||||||
this.keyboard.ArrowDown.call(this, evt) },
|
this.keyboard.ArrowDown.call(this, evt) },
|
||||||
c_d: function(evt){
|
|
||||||
if(this.get('edited')){
|
|
||||||
return }
|
|
||||||
evt.preventDefault()
|
|
||||||
for(var e of this.get('selected')){
|
|
||||||
e.removeAttribute('selected') } },
|
|
||||||
c_a: function(evt){
|
|
||||||
if(this.get('edited')){
|
|
||||||
return }
|
|
||||||
evt.preventDefault()
|
|
||||||
for(var e of this.get('all')){
|
|
||||||
e.setAttribute('selected', '') } },
|
|
||||||
|
|
||||||
// toggle checkbox...
|
// toggle checkbox...
|
||||||
' ': function(evt){
|
' ': function(evt){
|
||||||
|
|||||||
@ -219,7 +219,7 @@ var setup = function(){
|
|||||||
| c-left | prev checkbox |
|
| c-left | prev checkbox |
|
||||||
| c-right | next checkbox |
|
| c-right | next checkbox |
|
||||||
| space | toggle current checkbox |
|
| space | toggle current checkbox |
|
||||||
| a-x | toggle current element DONE |
|
| c-d | toggle current element DONE |
|
||||||
| c-z | normal: undo |
|
| c-z | normal: undo |
|
||||||
| c-s-z | normal: redo |
|
| c-s-z | normal: redo |
|
||||||
| c | normal: crop current node |
|
| c | normal: crop current node |
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user