From 6a8c5fb561e05eb1aef5a28d7f1ff4de6741d7c2 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 8 Mar 2017 20:22:40 +0300 Subject: [PATCH] tweaking... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/recover.js | 4 ++++ ui (gen4)/lib/widget/browse.js | 3 +++ 2 files changed, 7 insertions(+) diff --git a/ui (gen4)/features/recover.js b/ui (gen4)/features/recover.js index 2c69bc66..b92ab12b 100755 --- a/ui (gen4)/features/recover.js +++ b/ui (gen4)/features/recover.js @@ -49,6 +49,10 @@ var RecoverActions = actions.Actions({ // This is the same as .load(..) but will monitor for load errors // and attempt to recover if it fails... // + // This will return a promise that will resolve if load is successful + // and fail if load fails, passing the 'recovered' if recovery was + // successful and the error if not... + // // NOTE: this avoids load loops by attempting to recover only once... // NOTE: this is done as a wrapper because we can't catch errors in // parent actions at this point... diff --git a/ui (gen4)/lib/widget/browse.js b/ui (gen4)/lib/widget/browse.js index c05daeb6..76c2cd47 100755 --- a/ui (gen4)/lib/widget/browse.js +++ b/ui (gen4)/lib/widget/browse.js @@ -3146,6 +3146,9 @@ var BrowserPrototype = { if(to.length == 0){ // select first/last... //return this.navigate(action == 'down' ? 'last' : 'first') + + // XXX stop keyboard repeat... + // XXX // wrap around.... to = this.filter('*').filter(pattern)