mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 10:00:08 +00:00
tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
0e5d188cad
commit
5c28b8d10e
@ -1471,8 +1471,11 @@ var Outline = {
|
|||||||
evt.preventDefault()
|
evt.preventDefault()
|
||||||
this.shift('up')
|
this.shift('up')
|
||||||
} else {
|
} else {
|
||||||
that.focus(
|
var viewport = that.get('viewport')
|
||||||
that.get('viewport')[0], 'prev') } },
|
viewport[0] === that.get(0) ?
|
||||||
|
that.focus(0)
|
||||||
|
: that.focus(
|
||||||
|
viewport[0], 'prev') } },
|
||||||
PageDown: function(evt){
|
PageDown: function(evt){
|
||||||
var that = this
|
var that = this
|
||||||
var edited = this.get('edited')
|
var edited = this.get('edited')
|
||||||
@ -1483,8 +1486,11 @@ var Outline = {
|
|||||||
evt.preventDefault()
|
evt.preventDefault()
|
||||||
this.shift('down')
|
this.shift('down')
|
||||||
} else {
|
} else {
|
||||||
that.focus(
|
var viewport = that.get('viewport')
|
||||||
that.get('viewport').at(-1), 'next') } },
|
viewport.at(-1) === that.get(-1) ?
|
||||||
|
that.focus(-1)
|
||||||
|
: that.focus(
|
||||||
|
that.get('viewport').at(-1), 'next') } },
|
||||||
|
|
||||||
// indent..
|
// indent..
|
||||||
Tab: function(evt){
|
Tab: function(evt){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user