From b2044eb7a15d62ad3d4f2ff414a8a269cb0cd37b Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 17 Jan 2017 21:48:31 +0300 Subject: [PATCH] minor fix + docs... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/keyboard.js | 1 + ui (gen4)/features/ui-widgets.js | 3 ++- ui (gen4)/lib/widget/browse.js | 6 ++++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ui (gen4)/features/keyboard.js b/ui (gen4)/features/keyboard.js index b20bce87..0aec697b 100755 --- a/ui (gen4)/features/keyboard.js +++ b/ui (gen4)/features/keyboard.js @@ -579,6 +579,7 @@ var KeyboardActions = actions.Actions({ // NOTE: care must be taken when using or binding to this (especially // the .pre stage) as this may introduce a lag into user input. keyPress: ['- Interface/Handle key or keyboard event', + { keepDialogTitle: true }, function(key, no_match){ var that = this var did_handling = false diff --git a/ui (gen4)/features/ui-widgets.js b/ui (gen4)/features/ui-widgets.js index 5ab63192..ff34453f 100755 --- a/ui (gen4)/features/ui-widgets.js +++ b/ui (gen4)/features/ui-widgets.js @@ -579,7 +579,8 @@ module.Dialogs = core.ImageGridFeatures.Feature({ var elem = res.dom !elem.attr('keep-dialog-title') - elem.attr('dialog-title', this.getDocTitle(action)) + && !this.getActionAttr(action, 'keepDialogTitle') + && elem.attr('dialog-title', this.getDocTitle(action)) } }], ], diff --git a/ui (gen4)/lib/widget/browse.js b/ui (gen4)/lib/widget/browse.js index ebd02301..1bd6fb59 100755 --- a/ui (gen4)/lib/widget/browse.js +++ b/ui (gen4)/lib/widget/browse.js @@ -2784,6 +2784,12 @@ var BrowserPrototype = { } // load the initial state... + // + // NOTE: this used to be run in the timeout below, it turned out + // to be a really bad idea mainly because the events bound + // in .list(..) turned out to be bound AFTER the events bound + // in the function that called the constructor, which messed + // up the triggering order... that.update(options.path || that.path || '/') // Select the default path...