From 819f3cafe9271772bf2f0057382129a2e98ed1c9 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 30 Jun 2019 02:15:35 +0300 Subject: [PATCH] minor fix... Signed-off-by: Alex A. Naanou --- ui (gen4)/lib/widget/browse2.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/ui (gen4)/lib/widget/browse2.js b/ui (gen4)/lib/widget/browse2.js index 045cae68..3bb3ef09 100755 --- a/ui (gen4)/lib/widget/browse2.js +++ b/ui (gen4)/lib/widget/browse2.js @@ -3100,11 +3100,17 @@ var BaseBrowserPrototype = { // this is different from .focus('next') / .focus('prev')... // NOTE: these also differ from focus in that they will only go // through the main section... - next: function(){ - this.focus(this.get('next') || this.get('first')) + next: function(options){ + options = Object.assign( + { skipDisabled: !(this.options || {}).focusDisabledItems }, + options || {}) + this.focus(this.get('next', options) || this.get('first', options)) return this }, - prev: function(){ - this.focus(this.get('prev') || this.get('last')) + prev: function(options){ + options = Object.assign( + { skipDisabled: !(this.options || {}).focusDisabledItems }, + options || {}) + this.focus(this.get('prev', options) || this.get('last', options)) return this }, // selection... select: makeItemOptionOnEventMethod('select', 'selected', {