Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-06-04 15:26:28 +03:00
parent 35f91f6642
commit 15bccab8bc

View File

@ -2889,6 +2889,7 @@ var BrowserPrototype = {
// or same as .renderList(..) // or same as .renderList(..)
// //
// XXX revise... // XXX revise...
// XXX highlight focused element in css...
renderFinalize: function(items, context){ renderFinalize: function(items, context){
var d = this.renderList(items, context) var d = this.renderList(items, context)
@ -3244,6 +3245,9 @@ var BrowserPrototype = {
up: function(){}, up: function(){},
down: function(){}, down: function(){},
// XXX check if there are elements to the left... // XXX check if there are elements to the left...
// XXX which is better?
// - on top level left goes to first element (as on all other levels)
// - on top level left is like prev (less uniform but somehow feels more logical)
left: function(){ left: function(){
var focused = this.focused var focused = this.focused
var p var p
@ -3256,6 +3260,7 @@ var BrowserPrototype = {
: (p = this.parentOf()) && p !== this ? : (p = this.parentOf()) && p !== this ?
this.focus(p) this.focus(p)
// prev... // prev...
//: this.focus('first')
: this.prev() : this.prev()
}, },
// XXX check if there are elements to the right... // XXX check if there are elements to the right...