[Libreoffice-commits] online.git: loleaflet/src
Pranav Kant
pranavk at collabora.co.uk
Thu Nov 9 11:31:50 UTC 2017
loleaflet/src/control/Control.LokDialog.js | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 0a5549bc6beb0de1d9bb9a8336aa388c6f15efac
Author: Pranav Kant <pranavk at collabora.co.uk>
Date: Thu Nov 9 17:00:18 2017 +0530
lokdialog: Cycle TAB key *in* the LOK dialog
With this, TAB key is cycled through properly in the LOK dialog's
buttons.
Change-Id: I9357a5a88b661ac7f90a507071d34dcb05964c43
diff --git a/loleaflet/src/control/Control.LokDialog.js b/loleaflet/src/control/Control.LokDialog.js
index d539e246..e079c5cc 100644
--- a/loleaflet/src/control/Control.LokDialog.js
+++ b/loleaflet/src/control/Control.LokDialog.js
@@ -56,6 +56,9 @@ L.Control.LokDialog = L.Control.extend({
}
});
+ // don't make 'TAB' focus on this button; we want to cycle focus in the lok dialog with each TAB
+ $('.lokdialog_container button.ui-dialog-titlebar-close').attr('tabindex', '-1').blur();
+
// attach the mouse/key events
$('#' + dialogId + '-canvas').on('mousedown', function(e) {
var buttons = 0;
More information about the Libreoffice-commits
mailing list