From cab455a463d03ea3f89b6d8cfb6729f9a68fecfc Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 14 Feb 2015 03:37:24 +0300 Subject: [PATCH] minor polishing... Signed-off-by: Alex A. Naanou --- ui (gen4)/experiments/browse-dialog.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ui (gen4)/experiments/browse-dialog.html b/ui (gen4)/experiments/browse-dialog.html index d82d306e..7abd4feb 100755 --- a/ui (gen4)/experiments/browse-dialog.html +++ b/ui (gen4)/experiments/browse-dialog.html @@ -125,7 +125,9 @@ function skipFiles(e, v){ function make(title){ var browser = $('
') .addClass('browse') + // make thie widget focusable... .attr('tabindex', -1) + // focus the widget if something inside is clicked... .click(function(){ $(this).focus() }) @@ -367,7 +369,11 @@ $(function(){ .append(browser) showPath(browser, '/', TREE) - $('.container').draggable() + $('.container').draggable({ + cancel: ".path .dir, .list div" + }) + + browser.focus() })