From d431807da0feb81dae3107ec15dc639b282da500 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 30 Jun 2019 02:21:05 +0300 Subject: [PATCH] minor tweaking / cleanup... Signed-off-by: Alex A. Naanou --- ui (gen4)/lib/widget/browse2.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ui (gen4)/lib/widget/browse2.js b/ui (gen4)/lib/widget/browse2.js index 3bb3ef09..2d56c1ec 100755 --- a/ui (gen4)/lib/widget/browse2.js +++ b/ui (gen4)/lib/widget/browse2.js @@ -3104,14 +3104,12 @@ var BaseBrowserPrototype = { options = Object.assign( { skipDisabled: !(this.options || {}).focusDisabledItems }, options || {}) - this.focus(this.get('next', options) || this.get('first', options)) - return this }, + return this.focus(this.get('next', options) || this.get('first', options)) }, prev: function(options){ options = Object.assign( { skipDisabled: !(this.options || {}).focusDisabledItems }, options || {}) - this.focus(this.get('prev', options) || this.get('last', options)) - return this }, + return this.focus(this.get('prev', options) || this.get('last', options)) }, // selection... select: makeItemOptionOnEventMethod('select', 'selected', { options: function(){ @@ -3512,7 +3510,9 @@ var focusItem = function(direction){ // hold repeat at last element... focused === (direction == 'up' ? first : last) && this.keyboard.pauseRepeat - && this.keyboard.pauseRepeat() } } + && this.keyboard.pauseRepeat() + + return this } } // XXX this behaves in an odd way with .options.scrollBehavior = 'smooth' var focusPage = function(direction){ var d = direction == 'up' ?