[Libreoffice-commits] .: bug/bug

Loic Dachary loic at kemper.freedesktop.org
Wed Sep 21 03:21:41 PDT 2011


 bug/bug/bug.js |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit c60e88bc872d9bccc8ce1581e488fbb0bffb2a88
Author: Loic Dachary <loic at dachary.org>
Date:   Wed Sep 21 12:21:31 2011 +0200

    avoid displaying caret by losing focus on the file input field

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index 0743585..c8dca53 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -220,6 +220,7 @@
             // type the filename. launch the browser instead.
             $("input[type='file']", element).focus(function() {
                 $(this).click();
+                $(this).blur(); // loose focus so that no caret is shown even when in caret browsing
             });
             $("input[type='file']", element).change(function() {
                 $("input[type='text']", element).val($(this).val());


More information about the Libreoffice-commits mailing list