mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-30 18:40:08 +00:00
pgup/pgdown now move focus... (some tuning might still be needed)
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
ecf40bb455
commit
0e5d188cad
@ -1462,19 +1462,29 @@ var Outline = {
|
|||||||
evt.preventDefault()
|
evt.preventDefault()
|
||||||
this.focus(-1) },
|
this.focus(-1) },
|
||||||
PageUp: function(evt){
|
PageUp: function(evt){
|
||||||
|
var that = this
|
||||||
var edited = this.get('edited')
|
var edited = this.get('edited')
|
||||||
if(!edited
|
if(edited){
|
||||||
&& (evt.shiftKey
|
return }
|
||||||
|| evt.ctrlKey)){
|
if(evt.shiftKey
|
||||||
|
|| evt.ctrlKey){
|
||||||
evt.preventDefault()
|
evt.preventDefault()
|
||||||
this.shift('up') } },
|
this.shift('up')
|
||||||
|
} else {
|
||||||
|
that.focus(
|
||||||
|
that.get('viewport')[0], 'prev') } },
|
||||||
PageDown: function(evt){
|
PageDown: function(evt){
|
||||||
|
var that = this
|
||||||
var edited = this.get('edited')
|
var edited = this.get('edited')
|
||||||
if(!edited
|
if(edited){
|
||||||
&& (evt.shiftKey
|
return }
|
||||||
|| evt.ctrlKey)){
|
if(evt.shiftKey
|
||||||
|
|| evt.ctrlKey){
|
||||||
evt.preventDefault()
|
evt.preventDefault()
|
||||||
this.shift('down') } },
|
this.shift('down')
|
||||||
|
} else {
|
||||||
|
that.focus(
|
||||||
|
that.get('viewport').at(-1), 'next') } },
|
||||||
|
|
||||||
// indent..
|
// indent..
|
||||||
Tab: function(evt){
|
Tab: function(evt){
|
||||||
|
|||||||
@ -50,7 +50,6 @@ var setup = function(){
|
|||||||
-
|
-
|
||||||
- ## ToDo:
|
- ## ToDo:
|
||||||
- crop: show crop path (and depth)
|
- crop: show crop path (and depth)
|
||||||
- pgup/pgdown/~home/end~ buttons
|
|
||||||
- identify a block:
|
- identify a block:
|
||||||
- DONE index (flat)
|
- DONE index (flat)
|
||||||
- DONE path (index)
|
- DONE path (index)
|
||||||
@ -118,6 +117,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...
|
||||||
|
- DONE pgup/pgdown/home/end buttons
|
||||||
- DONE FEATURE: "crop" -- view block tree separately...
|
- DONE FEATURE: "crop" -- view block tree separately...
|
||||||
- DONE unify attr parsing
|
- DONE unify attr parsing
|
||||||
collapsed:: true
|
collapsed:: true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user