Skip to content

Commit

Permalink
notebookbar: tab focus cycle inside tab page
Browse files Browse the repository at this point in the history
Signed-off-by: Szymon Kłos <[email protected]>
Change-Id: I0daf9a068802470a45cfd203577a2b5f01c7cfc5
  • Loading branch information
eszkadev authored and pedropintosilva committed Jul 14, 2023
1 parent a58c802 commit 6124d3a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions browser/src/control/Control.NotebookbarBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ L.Control.NotebookbarBuilder = L.Control.JSDialogBuilder.extend({
this._controlHandlers['combobox'] = this._comboboxControlHandler;
this._controlHandlers['listbox'] = this._comboboxControlHandler;
this._controlHandlers['tabcontrol'] = this._overriddenTabsControlHandler;
this._controlHandlers['tabpage'] = this._overriddenTabPageHandler;
this._controlHandlers['menubartoolitem'] = this._inlineMenubarToolItemHandler;
this._controlHandlers['bigmenubartoolitem'] = this._bigMenubarToolItemHandler;
this._controlHandlers['bigtoolitem'] = this._bigtoolitemHandler;
Expand Down Expand Up @@ -389,6 +390,15 @@ L.Control.NotebookbarBuilder = L.Control.JSDialogBuilder.extend({
return builder._tabsControlHandler(parentContainer, data, builder, _('Tap to collapse'));
},

_overriddenTabPageHandler: function(parentContainer, data, builder) {
var result = builder._tabPageHandler(parentContainer, data, builder);

var tabPage = parentContainer.lastChild;
JSDialog.MakeFocusCycle(tabPage);

return result;
},

_toolboxHandler: function(parentContainer, data) {
if (data.enabled === false || data.enabled === 'false') {
for (var index in data.children) {
Expand Down

0 comments on commit 6124d3a

Please sign in to comment.